From 85d4b0a96e53f57d9598a89f46029e1fb7d074df Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期二, 01 十一月 2022 16:06:39 +0800
Subject: [PATCH] Merge branch 'local_20221024' into huacheng_test

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/DiscussApi.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/DiscussApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/DiscussApi.java
index 45b4f45..a02cc53 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/DiscussApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/DiscussApi.java
@@ -55,7 +55,7 @@
         if (StrUtil.isNotBlank(discussSubject)) {
             String result = checkService.checkMessageBy(discussSubject, openid, appId);
             if (StrUtil.isNotBlank(result)) {
-                return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息");
+                return R.fail(501, "填写内容存在 " + result + " 违规信息");
             }
         }
 
@@ -63,7 +63,7 @@
         String photoPah = comActDiscussDTO.getPhotoPah();
         if (StrUtil.isNotBlank(photoPah)) {
             if (!checkService.checkImageBy(photoPah, appId)) {
-                return R.fail(Constants.NOTICE_FAIL, "上传图片存在违规信息");
+                return R.fail(501, "上传图片存在违规信息");
             }
         }
 
@@ -131,7 +131,7 @@
         }
         String result = checkService.checkMessageBy(comment, this.getLoginUserInfo().getOpenid(), this.getAppId());
         if (StrUtil.isNotBlank(result)) {
-            return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息");
+            return R.fail(501, "填写内容存在 " + result + " 违规信息");
         }
         comActDiscussCommentDTO.setUserId(this.getUserId());
         // 议事投票计算积分
@@ -198,7 +198,7 @@
         }
         String result = checkService.checkMessageBy(comment, this.getLoginUserInfo().getOpenid(), this.getAppId());
         if (StrUtil.isNotBlank(result)) {
-            return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息");
+            return R.fail(501, "填写内容存在 " + result + " 违规信息");
         }
         comActDiscussCommentDTO.setUserId(this.getUserId());
         return communityService.addDiscussCommentBack(comActDiscussCommentDTO);

--
Gitblit v1.7.1