xiexiaoyuan 2 жил өмнө
parent
commit
128570f966

+ 2 - 2
services/comment/comment.go

@@ -67,7 +67,7 @@ func Comment(user user.UserInfo, req reqComment.ReqComment) (ret response.RespCo
 		}
 	}
 	// 敏感词过滤
-	//if user.RecordInfo.OpenID != "" && user.RecordInfo.CreatePlatform == 6 {   //只有小程序的用户才能走敏感词过滤接口
+	if user.RecordInfo.OpenID != "" && user.RecordInfo.CreatePlatform == 6 {   //只有小程序的用户才能走敏感词过滤接口
 		checkResult, tErr := wx_app.MsgSecCheck(user.RecordInfo.OpenID, req.Content)
 		if tErr != nil {
 			errMsg = "敏感词过滤失败" + tErr.Error()
@@ -83,7 +83,7 @@ func Comment(user user.UserInfo, req reqComment.ReqComment) (ret response.RespCo
 				}
 			}
 		//}
-	//}
+	}
 
 
 	//新增留言