From 54119a362b16f5d837780852e7500462e7a0d362 Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Wed, 10 Aug 2022 19:34:09 +0800 Subject: [PATCH] colum error --- handle/blockService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle/blockService.go b/handle/blockService.go index 637300c..17a896e 100644 --- a/handle/blockService.go +++ b/handle/blockService.go @@ -35,7 +35,7 @@ func RecordWechatBlockWords(text, textMd5, opUser string) { func WordsBlocked(textMd5 string) bool { var Record WechatBlockWords - if global.DB.Where("ContentMd5 = ?", textMd5).First(&Record).RecordNotFound() { + if global.DB.Where("content_md5 = ?", textMd5).First(&Record).RecordNotFound() { return true } return false