diff --git a/handle/blockService.go b/handle/blockService.go index 17a896e..f4fd674 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("content_md5 = ?", textMd5).First(&Record).RecordNotFound() { - return true + return false } - return false + return true } diff --git a/handle/replyText.go b/handle/replyText.go index 9d8f0a0..468e727 100644 --- a/handle/replyText.go +++ b/handle/replyText.go @@ -70,7 +70,7 @@ func replyText(msgContent MsgContent, timestamp, nonce string, w http.ResponseWr //文本消息审核 if WordsBlocked(utils.Md5String(replyContent)) { - replyContent = "***(太文明,无法显示)" + replyContent = "***(过于文明,无法显示)" } //构造回复消息