修改自动匹配 方法

This commit is contained in:
平凡梦
2020-07-13 17:37:37 +08:00
parent c1f2a17ed0
commit 4cc4ddaeff

View File

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