From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborWestApi.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborWestApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborWestApi.java index 4ffc58c..12620c7 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborWestApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborWestApi.java @@ -66,7 +66,7 @@ if (StrUtil.isNotBlank(releaseContent)) { String result = checkService.checkMessageBy(releaseContent, openid, appId); if (StrUtil.isNotBlank(result)) { - return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); + return R.fail(501, "填写内容存在 " + result + " 违规信息"); } } @@ -74,7 +74,7 @@ String releaseImages = addNeighborCircleAppDTO.getReleaseImages(); if (StrUtil.isNotBlank(releaseImages)) { if (!checkService.checkImageBy(releaseImages, appId)) { - return R.fail(Constants.NOTICE_FAIL, "上传图片存在违规信息"); + return R.fail(501, "上传图片存在违规信息"); } } @@ -87,7 +87,7 @@ if(this.getAppId().equals("wx118de8a734d269f0")){ //花城直接通过 - addNeighborCircleAppDTO.setIsExamine(AddComActNeighborCircleAppDTO.isExamine.yes); + addNeighborCircleAppDTO.setIsExamine(AddComActNeighborCircleAppDTO.isExamine.no); addNeighborCircleAppDTO.setWxExamineResult(AddComActNeighborCircleAppDTO.isExamine.yes); }else { //查询社区自动审核是否开着 @@ -187,7 +187,7 @@ if (StrUtil.isNotBlank(content)) { String result = checkService.checkMessageBy(content, openid, appId); if (StrUtil.isNotBlank(result)) { - return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); + return R.fail(501, "填写内容存在 " + result + " 违规信息"); } } return communityWestService.neighborCommentByApp(commentAppDTO); -- Gitblit v1.7.1