|
@@ -30,6 +30,7 @@ import shop.alien.store.config.WebSocketProcess;
|
|
|
import shop.alien.store.service.*;
|
|
import shop.alien.store.service.*;
|
|
|
import shop.alien.store.util.AiUserViolationUtils;
|
|
import shop.alien.store.util.AiUserViolationUtils;
|
|
|
import shop.alien.store.util.FunctionMagic;
|
|
import shop.alien.store.util.FunctionMagic;
|
|
|
|
|
+import shop.alien.store.util.ai.AiReportReviewUtil;
|
|
|
import shop.alien.util.ali.AliOSSUtil;
|
|
import shop.alien.util.ali.AliOSSUtil;
|
|
|
import shop.alien.util.common.EnumUtil;
|
|
import shop.alien.util.common.EnumUtil;
|
|
|
|
|
|
|
@@ -87,6 +88,9 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
|
|
|
|
|
|
|
|
private final AiUserViolationUtils aiUserViolationUtils;
|
|
private final AiUserViolationUtils aiUserViolationUtils;
|
|
|
private final CommonCommentMapper commonCommentMapper;
|
|
private final CommonCommentMapper commonCommentMapper;
|
|
|
|
|
+ private final AiReportReviewUtil aiReportReviewUtil;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SecondUserViolationMapper mapper;
|
|
private SecondUserViolationMapper mapper;
|
|
@@ -110,6 +114,7 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
|
|
|
if (null != goodsRecord) lifeuserViolation.setBusinessId(goodsRecord.getId());
|
|
if (null != goodsRecord) lifeuserViolation.setBusinessId(goodsRecord.getId());
|
|
|
}
|
|
}
|
|
|
int result = lifeUserViolationMapper.insert(lifeuserViolation);
|
|
int result = lifeUserViolationMapper.insert(lifeuserViolation);
|
|
|
|
|
+ aiReportReviewUtil.reviewReport(lifeuserViolation.getId(), lifeuserViolation.getReportContextType());
|
|
|
if (result > 0) {
|
|
if (result > 0) {
|
|
|
// AI审核
|
|
// AI审核
|
|
|
//登录获取token
|
|
//登录获取token
|
|
@@ -126,7 +131,7 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
|
|
|
|
|
|
|
|
//String phoneId = Objects.requireNonNull(JwtUtil.getCurrentUserInfo()).getString("userType") + "_" + JwtUtil.getCurrentUserInfo().getString("phone");
|
|
//String phoneId = Objects.requireNonNull(JwtUtil.getCurrentUserInfo()).getString("userType") + "_" + JwtUtil.getCurrentUserInfo().getString("phone");
|
|
|
// 举报人消息
|
|
// 举报人消息
|
|
|
- LifeNotice lifeNotice = getLifeNotice(lifeuserViolation);
|
|
|
|
|
|
|
+ /* LifeNotice lifeNotice = getLifeNotice(lifeuserViolation);
|
|
|
lifeNoticeMapper.insert(lifeNotice);
|
|
lifeNoticeMapper.insert(lifeNotice);
|
|
|
WebSocketVo websocketVo = new WebSocketVo();
|
|
WebSocketVo websocketVo = new WebSocketVo();
|
|
|
websocketVo.setSenderId("system");
|
|
websocketVo.setSenderId("system");
|
|
@@ -151,7 +156,7 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
|
|
|
websocketVoReported.setText(com.alibaba.fastjson2.JSONObject.from(lifeNoticeReported).toJSONString());
|
|
websocketVoReported.setText(com.alibaba.fastjson2.JSONObject.from(lifeNoticeReported).toJSONString());
|
|
|
webSocketProcess.sendMessage(lifeNoticeReported.getReceiverId(), com.alibaba.fastjson2.JSONObject.from(websocketVoReported).toJSONString());
|
|
webSocketProcess.sendMessage(lifeNoticeReported.getReceiverId(), com.alibaba.fastjson2.JSONObject.from(websocketVoReported).toJSONString());
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|