| | |
| | | if (StrUtil.isNotBlank(evaluateContent)) { |
| | | String result = checkService.checkMessageBy(evaluateContent, openid, appId); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | |
| | |
| | | String photo = comActActEvaluateVO.getPhoto(); |
| | | if (StrUtil.isNotBlank(photo)) { |
| | | if (!checkService.checkImageBy(photo, appId)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "上传图片存在违规信息"); |
| | | return R.fail(501, "上传图片存在违规信息"); |
| | | } |
| | | } |
| | | return communityService.activityEvaluate(comActActEvaluateVO); |
| | |
| | | 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 + " 违规信息"); |
| | | } |
| | | } |
| | | |
| | |
| | | String photoPah = comActDiscussDTO.getPhotoPah(); |
| | | if (StrUtil.isNotBlank(photoPah)) { |
| | | if (!checkService.checkImageBy(photoPah, appId)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "上传图片存在违规信息"); |
| | | return R.fail(501, "上传图片存在违规信息"); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | 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()); |
| | | // 议事投票计算积分 |
| | |
| | | } |
| | | 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); |
| | |
| | | if (StrUtil.isNotBlank(introduction)) { |
| | | String result = checkService.checkMessageBy(introduction, this.getLoginUserInfo().getOpenid(),this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | if (StrUtil.isNotBlank(detail)) { |
| | | String result = checkService.checkMessageBy(detail, openid, appId); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | |
| | |
| | | String photoPathList = comActEasyPhotoVO.getPhotoPathList(); |
| | | if (StrUtil.isNotBlank(photoPathList)) { |
| | | if (!checkService.checkImageBy(photoPathList, appId)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "上传图片存在违规信息"); |
| | | return R.fail(501, "上传图片存在违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | if (StrUtil.isNotBlank(comment)) { |
| | | String result = checkService.checkMessageBy(comment, openid, appId); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | comActEasyPhotoCommentDTO.setUserId(this.getUserId()); |
| | |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | 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 + " 违规信息"); |
| | | 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, "上传图片存在违规信息"); |
| | | return R.fail(501, "上传图片存在违规信息"); |
| | | } |
| | | } |
| | | addNeighborCircleAppDTO.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 + " 违规信息"); |
| | | } |
| | | } |
| | | 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); |
| | |
| | | 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 + " 违规信息"); |
| | | } |
| | | } |
| | | |
| | |
| | | String releaseImages = addNeighborCircleAppDTO.getReleaseImages(); |
| | | if (StrUtil.isNotBlank(releaseImages)) { |
| | | if (!checkService.checkImageBy(releaseImages, appId)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "上传图片存在违规信息"); |
| | | return R.fail(501, "上传图片存在违规信息"); |
| | | } |
| | | } |
| | | |
| | |
| | | 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); |
| | |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); |
| | | if (StrUtil.isNotBlank(result)) { |
| | | return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); |
| | | return R.fail(501, "填写内容存在 " + result + " 违规信息"); |
| | | } |
| | | } |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | |
| | | public static final Integer FAIL = 500; |
| | | |
| | | /** |
| | | * 失败标记-微信提示违规记录消息状态码 |
| | | */ |
| | | public static final Integer NOTICE_FAIL = 501; |
| | | |
| | | /** |
| | | * 登录成功 |
| | | */ |
| | | public static final String LOGIN_SUCCESS = "Success"; |