|
|
@@ -105,7 +105,26 @@ public class AiUserViolationUtils {
|
|
|
|
|
|
Map<String, Object> analyzeRequest = new HashedMap<>();
|
|
|
// 对应参数
|
|
|
- analyzeRequest.put("complaint_type", lifeuserViolation.getViolationType());
|
|
|
+ if (lifeuserViolation.getViolationType().equals("1")){
|
|
|
+ analyzeRequest.put("complaint_type", "用户违规");
|
|
|
+ } else if (lifeuserViolation.getViolationType().equals("2")){
|
|
|
+ analyzeRequest.put("complaint_type", "色情低俗");
|
|
|
+ } else if (lifeuserViolation.getViolationType().equals("3")){
|
|
|
+ analyzeRequest.put("complaint_type", "违法违规");
|
|
|
+ } else if (lifeuserViolation.getViolationType().equals("5")){
|
|
|
+ analyzeRequest.put("complaint_type", "涉嫌诈骗");
|
|
|
+ } else if (lifeuserViolation.getViolationType().equals("6")){
|
|
|
+ analyzeRequest.put("complaint_type", "人身攻击");
|
|
|
+ } else if (lifeuserViolation.getViolationType().equals("7")){
|
|
|
+ analyzeRequest.put("complaint_type", "种族歧视");
|
|
|
+ } else if (lifeuserViolation.getViolationType().equals("4")){
|
|
|
+ analyzeRequest.put("complaint_type", "辱骂敏感");
|
|
|
+ } else if (lifeuserViolation.getViolationType().equals("12")){
|
|
|
+ analyzeRequest.put("complaint_type", "网络暴力");
|
|
|
+ } else {
|
|
|
+ analyzeRequest.put("complaint_type", "其他");
|
|
|
+ }
|
|
|
+
|
|
|
analyzeRequest.put("reporter_user_id", lifeuserViolation.getReportingUserId());
|
|
|
analyzeRequest.put("reported_user_id", lifeuserViolation.getReportedUserId());
|
|
|
|
|
|
@@ -163,13 +182,13 @@ public class AiUserViolationUtils {
|
|
|
}
|
|
|
|
|
|
// 获取record_id用于后续查询
|
|
|
- Integer taskId = dataJsonObj.getInteger("task_id");
|
|
|
+ String taskId = dataJsonObj.getString("task_id");
|
|
|
if (taskId == null) {
|
|
|
log.error("提交用户投诉审核任务返回record_id为空");
|
|
|
R.fail("提交用户投诉审核任务返回record_id为空");
|
|
|
return null;
|
|
|
}
|
|
|
- return taskId.toString();
|
|
|
+ return taskId;
|
|
|
} else {
|
|
|
if (analyzeResp != null) {
|
|
|
log.error("调用提交用户投诉审核任务接口失败, http状态: {}", analyzeResp.getStatusCode());
|
|
|
@@ -199,7 +218,7 @@ public class AiUserViolationUtils {
|
|
|
.eq("receiver_id", userReporterUserById));
|
|
|
|
|
|
// 按时间倒序排列
|
|
|
- queryWrapper.orderByDesc("create_time");
|
|
|
+ queryWrapper.orderByDesc("created_time");
|
|
|
|
|
|
// 限制50条记录
|
|
|
queryWrapper.last("LIMIT 50");
|