no message

main
HUOJIN\92525 2024-09-18 17:50:31 +08:00
parent 78f15dcd2a
commit f9467dffb8
1 changed files with 2 additions and 5 deletions

View File

@ -357,7 +357,7 @@ public class AgvTaskServiceImpl implements AgvTaskService {
}
private void sendAgvTask(AgvTask agvTask, String json) {
/* String resultJson = HttpPostUtil.sendPostReq(UrlApi.submitMission(), json);
String resultJson = HttpPostUtil.sendPostReq(UrlApi.submitMission(), json);
if (StringUtils.isEmpty(resultJson)) {
throw new BadRequestException("AGV返回信息:下发任务接口调用失败!");
}
@ -367,10 +367,7 @@ public class AgvTaskServiceImpl implements AgvTaskService {
}
String code = resulObject.getString("code");
String message = resulObject.getString("message");*/
String code = "0";
String message = "";
String resultJson = "";
String message = resulObject.getString("message");
if (!"0".equals(code)) {
throw new BadRequestException("AGV返回信息:" + message);
} else {