Ver código fonte

pc 端小程序测试敏感词

xiexiaoyuan 2 anos atrás
pai
commit
fe92366772
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      services/comment/comment.go

+ 2 - 2
services/comment/comment.go

@@ -74,7 +74,7 @@ func Comment(user user.UserInfo, req reqComment.ReqComment) (ret response.RespCo
 			err = errors.New("敏感词过滤失败")
 			return
 		}
-		if tErr == nil {
+		//if tErr == nil {
 			if checkResult.Result != nil {
 				if checkResult.Result.Suggest != "pass" {
 					errMsg = "含有违禁词,不允许发布:" + checkResult.Result.Suggest +".命中标签:"+strconv.Itoa(checkResult.Result.Label)
@@ -82,7 +82,7 @@ func Comment(user user.UserInfo, req reqComment.ReqComment) (ret response.RespCo
 					return
 				}
 			}
-		}
+		//}
 	}