logical error

master
dustoair 3 years ago
parent af0f7720cf
commit a4ac53732d

@ -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
}

@ -70,7 +70,7 @@ func replyText(msgContent MsgContent, timestamp, nonce string, w http.ResponseWr
//文本消息审核
if WordsBlocked(utils.Md5String(replyContent)) {
replyContent = "***(文明,无法显示)"
replyContent = "***(过于文明,无法显示)"
}
//构造回复消息

Loading…
Cancel
Save