mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-23 01:36:36 +08:00
✏️ 迁移到 utils/sql
This commit is contained in:
parent
10b8ab297a
commit
1c0d2b2f95
@ -7,11 +7,11 @@ type book struct {
|
||||
|
||||
// 暂时随机选择一个书评
|
||||
func getBookReviewByKeyword(keyword string) (b book) {
|
||||
db.Find("book_review", &b, "where book_review LIKE %"+keyword+"%")
|
||||
db.Find("bookreview", &b, "where book_review LIKE %"+keyword+"%")
|
||||
return
|
||||
}
|
||||
|
||||
func getRandomBookReview() (b book) {
|
||||
db.Pick("book_review", &b)
|
||||
db.Pick("bookreview", &b)
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user