bug修改

This commit is contained in:
方亮 2025-09-05 14:45:02 +08:00
parent 70edf3feb0
commit 6884a9c12c
2 changed files with 6 additions and 2 deletions

View File

@ -86,6 +86,10 @@ public class AppRecognitionServiceImpl implements AppRecognitionService {
log.error(body);
JSONObject jsonObject = FastJsonHelper.jsonStrToJsonObj(body);
String code = jsonObject.getString("code");
if(StringUtils.isEmpty(code)){
log.error("公司人脸识别大傻逼,code不放一起");
code = jsonObject.getJSONObject("detail").getString("code");
}
if ("30019".equals(code) && i == 0) {
// 第一次遇到30019错误时设置replace模式再试一次
bean.setOptMode("replace");

View File

@ -129,7 +129,7 @@ public class PmWorkerServiceImpl implements PmWorkerService{
}
}
}
return new AjaxResult(200, sb.append(",基础数据添加成功").toString(),record.getId());
return AjaxResult.success(sb.append(",基础数据添加成功").toString(),record.getId());
}
/**
@ -249,7 +249,7 @@ public class PmWorkerServiceImpl implements PmWorkerService{
urkSendService.sendUserToDevice(record.getId(),record.getProId(),"0");
addWorkerEinData(record,fileMsg);
}
return AjaxResult.success(sb.append(",基础数据更新成功"));
return AjaxResult.success(sb.append(",基础数据更新成功").toString());
}
/**