mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 02:00:24 +00:00
✏️ 修复 manager 定时器错误
同时 make lint happy
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Package bookreview 书评
|
||||
package bookreview
|
||||
|
||||
import (
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user