|
|
@@ -287,21 +287,15 @@ public class AiCheckXxlJob {
|
|
|
com.alibaba.fastjson.JSONObject data = taskObject.getJSONObject("data");
|
|
|
if (data != null) {
|
|
|
boolean isValid = data.getBoolean("is_valid");
|
|
|
- String processingStatus;
|
|
|
- if (isValid) {
|
|
|
- processingStatus = "1";
|
|
|
- } else {
|
|
|
- processingStatus = "2";
|
|
|
- }
|
|
|
violation.setReportResult(data.getString("matched_type"));
|
|
|
- violation.setProcessingStatus(processingStatus);
|
|
|
+ violation.setProcessingStatus(isValid ? "1" : "2");
|
|
|
lifeUserViolationMapper.updateById(violation);
|
|
|
|
|
|
// 发送通知
|
|
|
LifeNotice lifeMessage = new LifeNotice();
|
|
|
LifeUser lifeUser = lifeUserMapper.selectById(violation.getReportingUserId());
|
|
|
lifeMessage.setReceiverId("user_" + lifeUser.getUserPhone());
|
|
|
- String text = "您的举报用户结果为" + (isValid ? "违规" : "未违规");
|
|
|
+ String text = "您的举报商品结果为" + (isValid ? "违规" : "未违规");
|
|
|
com.alibaba.fastjson.JSONObject lifeMessagejson = new com.alibaba.fastjson.JSONObject();
|
|
|
lifeMessagejson.put("title", "平台已受理");
|
|
|
lifeMessagejson.put("message", text);
|