浏览代码

feat(violation): 移除AI审核任务创建逻辑

- 注释掉AI审核任务创建相关代码
- 移除调用AI接口进行二次审核的功能
- 更新违规用户信息的逻辑不再涉及AI任务ID设置
zjy 1 周之前
父节点
当前提交
df89061f42

+ 9 - 9
alien-store/src/main/java/shop/alien/store/service/impl/LifeUserViolationServiceImpl.java

@@ -112,15 +112,15 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
             if (result > 0) {
                 // AI审核
                 //登录获取token
-                String token = aiUserViolationUtils.getAccessToken();
-                //调用AI接口
-                String taskId = aiUserViolationUtils.createTask(token, lifeuserViolation);
-                if (org.springframework.util.StringUtils.isEmpty(taskId)) {
-                    log.warn("Failed to create AI task for second round review, lifeuserViolation id={}", lifeuserViolation.getId());
-                    return 0;
-                }
-                lifeuserViolation.setAiTaskId(taskId);
-                lifeUserViolationMapper.updateById(lifeuserViolation);
+//                String token = aiUserViolationUtils.getAccessToken();
+//                //调用AI接口
+//                String taskId = aiUserViolationUtils.createTask(token, lifeuserViolation);
+//                if (org.springframework.util.StringUtils.isEmpty(taskId)) {
+//                    log.warn("Failed to create AI task for second round review, lifeuserViolation id={}", lifeuserViolation.getId());
+//                    return 0;
+//                }
+//                lifeuserViolation.setAiTaskId(taskId);
+//                lifeUserViolationMapper.updateById(lifeuserViolation);
 
 
                 //String phoneId = Objects.requireNonNull(JwtUtil.getCurrentUserInfo()).getString("userType") + "_" + JwtUtil.getCurrentUserInfo().getString("phone");