✏️ 修复 manager 定时器错误

同时 make lint happy
This commit is contained in:
fumiama
2021-12-26 14:07:05 +08:00
parent 1682c321d3
commit cb44758036
14 changed files with 74 additions and 50 deletions

View File

@@ -1,3 +1,4 @@
// Package bookreview 书评
package bookreview
import (

View File

@@ -7,11 +7,11 @@ type book struct {
// 暂时随机选择一个书评
func getBookReviewByKeyword(keyword string) (b book) {
db.Find("bookreview", &b, "where bookreview LIKE '%"+keyword+"%'")
_ = db.Find("bookreview", &b, "where bookreview LIKE '%"+keyword+"%'")
return
}
func getRandomBookReview() (b book) {
db.Pick("bookreview", &b)
_ = db.Pick("bookreview", &b)
return
}