Quellcode durchsuchen

放开敏感词过滤

xiexiaoyuan vor 2 Jahren
Ursprung
Commit
9da02d11fd
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      services/comment/comment.go

+ 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
 				}
 			}
 		//}
-	}
+	//}
 
 
 	//新增留言