From dc67c5586d27cc488e1d1f11804bd36cd1860910 Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Wed, 10 Aug 2022 19:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8ai=E7=BB=93=E6=9E=9C=20bool?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handle/blockService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handle/blockService.go b/handle/blockService.go index 9c6b473..637300c 100644 --- a/handle/blockService.go +++ b/handle/blockService.go @@ -36,8 +36,8 @@ func RecordWechatBlockWords(text, textMd5, opUser string) { func WordsBlocked(textMd5 string) bool { var Record WechatBlockWords if global.DB.Where("ContentMd5 = ?", textMd5).First(&Record).RecordNotFound() { - return false + return true } - return true + return false }