修改自动匹配 方法

This commit is contained in:
平凡梦
2020-07-13 17:39:08 +08:00
parent faed02bbee
commit 72a0e791b9

View File

@@ -741,6 +741,7 @@ func IsSensitiveWordInList(str string) (bool, string) {
for index > 0 {
index = strings.Index(keyWord, ",")
keyWord = keyWord[:index-1]
globals.SugarLogger.Debug("keyWord", keyWord)
checkHas := strings.Contains(str, keyWord)
if checkHas {
return true, keyWord