修改自动匹配 方法

This commit is contained in:
平凡梦
2020-07-13 16:42:51 +08:00
parent e5d685e749
commit c2431b605f

View File

@@ -731,7 +731,7 @@ func IsSensitiveWordInList(str string) (bool, string) {
if err == nil {
for _, value := range wordList {
keyWord := value.Word
checkHas := strings.Contains(str, keyWord)
checkHas := strings.Contains(keyWord, str)
if checkHas {
return true, keyWord
}