|
|
@@ -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");
|