|
@@ -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
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
|
|
|
|