审核ai结果 bool error

master
dustoair 3 years ago
parent 79c22600d8
commit dc67c5586d

@ -36,8 +36,8 @@ func RecordWechatBlockWords(text, textMd5, opUser string) {
func WordsBlocked(textMd5 string) bool { func WordsBlocked(textMd5 string) bool {
var Record WechatBlockWords var Record WechatBlockWords
if global.DB.Where("ContentMd5 = ?", textMd5).First(&Record).RecordNotFound() { if global.DB.Where("ContentMd5 = ?", textMd5).First(&Record).RecordNotFound() {
return false return true
} }
return true return false
} }

Loading…
Cancel
Save