bug修改
This commit is contained in:
parent
70edf3feb0
commit
6884a9c12c
|
|
@ -86,6 +86,10 @@ public class AppRecognitionServiceImpl implements AppRecognitionService {
|
||||||
log.error(body);
|
log.error(body);
|
||||||
JSONObject jsonObject = FastJsonHelper.jsonStrToJsonObj(body);
|
JSONObject jsonObject = FastJsonHelper.jsonStrToJsonObj(body);
|
||||||
String code = jsonObject.getString("code");
|
String code = jsonObject.getString("code");
|
||||||
|
if(StringUtils.isEmpty(code)){
|
||||||
|
log.error("公司人脸识别大傻逼,code不放一起");
|
||||||
|
code = jsonObject.getJSONObject("detail").getString("code");
|
||||||
|
}
|
||||||
if ("30019".equals(code) && i == 0) {
|
if ("30019".equals(code) && i == 0) {
|
||||||
// 第一次遇到30019错误时,设置replace模式再试一次
|
// 第一次遇到30019错误时,设置replace模式再试一次
|
||||||
bean.setOptMode("replace");
|
bean.setOptMode("replace");
|
||||||
|
|
|
||||||
|
|
@ -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");
|
urkSendService.sendUserToDevice(record.getId(),record.getProId(),"0");
|
||||||
addWorkerEinData(record,fileMsg);
|
addWorkerEinData(record,fileMsg);
|
||||||
}
|
}
|
||||||
return AjaxResult.success(sb.append(",基础数据更新成功"));
|
return AjaxResult.success(sb.append(",基础数据更新成功").toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue