lin
2024-04-11 cd3eb53bc8b7311d522881ee2993cf9bf9a4d242
无诈
2 files modified
30 ■■■■ changed files
src/main/java/org/springblade/modules/circle/service/impl/CircleServiceImpl.java 28 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/mapper/TaskNoFraudReportingMapper.xml 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/circle/service/impl/CircleServiceImpl.java
@@ -110,21 +110,21 @@
            circle.setCommunityCode(communityCode);
        }
        // 校验事件是否分享过
        if (circle.getCircleType() != null && circle.getEventId() != null) {
            long count = count(Wrappers.<CircleEntity>lambdaQuery().
                eq(CircleEntity::getCircleType, circle.getCircleType()).
                eq(CircleEntity::getEventId, circle.getEventId()));
            if (count > 0) {
                return "当前发布的内容已经分享过,请勿重复发布!";
            }
        }
//        if (circle.getCircleType() != null && circle.getEventId() != null) {
//            long count = count(Wrappers.<CircleEntity>lambdaQuery().
//                eq(CircleEntity::getCircleType, circle.getCircleType()).
//                eq(CircleEntity::getEventId, circle.getEventId()));
//            if (count > 0) {
//                return "当前发布的内容已经分享过,请勿重复发布!";
//            }
//        }
        String iswords = "false";
        if (circle.getCircleType() == null && circle.getEventId() == null) {
            // 先进行敏感词过滤
            Map<String, Object> map = worksService.interceptWords(circle.getCircleText());
            // 获取敏感词校验结果
            iswords = map.get("iswords").toString();
        }
//        if (circle.getCircleType() == null && circle.getEventId() == null) {
        // 先进行敏感词过滤
        Map<String, Object> map = worksService.interceptWords(circle.getCircleText());
        // 获取敏感词校验结果
        iswords = map.get("iswords").toString();
//        }
        if (iswords.equals("false")) {
            // 审核通过
            boolean flag = save(circle);
src/main/java/org/springblade/modules/task/mapper/TaskNoFraudReportingMapper.xml
@@ -99,8 +99,8 @@
                    </otherwise>
                </choose>
            </if>
            order by jtnfr.create_time desc
        </where>
        order by jtnfr.create_time desc
    </select>
    <select id="selectPatrolRecordList" parameterType="Long"