修改自动匹配 方法

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

View File

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