| | |
| | | if (userId == null) { |
| | | return R.fail("请重新登录"); |
| | | } |
| | | String releaseContent = addNeighborCircleAppDTO.getReleaseContent(); |
| | | if (StrUtil.isNotBlank(releaseContent)) { |
| | | String result = checkService.checkMessageBy(releaseContent, this.getLoginUserInfo().getOpenid(), this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | if (!this.getAppId().equals("wx118de8a734d269f0")){ |
| | | String releaseContent = addNeighborCircleAppDTO.getReleaseContent(); |
| | | if (StrUtil.isNotBlank(releaseContent)) { |
| | | String result = checkService.checkMessageBy(releaseContent, this.getLoginUserInfo().getOpenid(), this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | } |
| | | String releaseImages = addNeighborCircleAppDTO.getReleaseImages(); |
| | | if (StrUtil.isNotBlank(releaseImages)) { |
| | | if (checkService.checkImageBy(releaseImages, this.getAppId())) { |
| | | return R.fail(Constants.NOTICE_FAIL, "上传图片存在违规信息"); |
| | | } |
| | | /* String releaseImages = addNeighborCircleAppDTO.getReleaseImages(); |
| | | if (StrUtil.isNotBlank(releaseImages)) { |
| | | if (checkService.checkImageBy(releaseImages, this.getAppId())) { |
| | | return R.fail(501, "上传图片存在违规信息"); |
| | | } |
| | | }*/ |
| | | } |
| | | addNeighborCircleAppDTO.setUserId(userId); |
| | | if (StringUtils.isNotEmpty(loginUser.getPhone())) { |
| | |
| | | if (StrUtil.isNotBlank(content)) { |
| | | String result = checkService.checkMessageBy(content, this.getLoginUserInfo().getOpenid(), this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | commentAppDTO.setUserId(userId); |
| | |
| | | if (StrUtil.isNotBlank(content)) { |
| | | String result = checkService.checkMessageBy(content, this.getLoginUserInfo().getOpenid(), this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | replyAppDTO.setUserId(userId); |