From c824b2e0b419a2fff0024d581f8014c9be1ec65d Mon Sep 17 00:00:00 2001 From: fumiama Date: Wed, 8 Dec 2021 17:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E5=88=B0=20utils/sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_book_review/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin_book_review/model.go b/plugin_book_review/model.go index f3a9788d..8fc85ac4 100644 --- a/plugin_book_review/model.go +++ b/plugin_book_review/model.go @@ -7,7 +7,7 @@ type book struct { // 暂时随机选择一个书评 func getBookReviewByKeyword(keyword string) (b book) { - db.Find("bookreview", &b, "where book_review LIKE %"+keyword+"%") + db.Find("bookreview", &b, "where bookreview LIKE %"+keyword+"%") return }