| | |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | @Slf4j |
| | | @Service |
| | |
| | | response = new HttpHandler.Builder() |
| | | .setUri(url) |
| | | .setPath(path) |
| | | .setTimeout(30, TimeUnit.SECONDS) |
| | | .setJson(JSONObject.toJSONString(requestParam)) |
| | | .build() |
| | | .doPost(); |
| | |
| | | int code = Integer.parseInt(jsonObject.get("code").toString()); |
| | | if(code != 0){ |
| | | //TODO 张超 |
| | | //throw new CoolException("调用AGV响应错误"); |
| | | return code; |
| | | throw new CoolException("调用AGV响应错误"); |
| | | //return code; |
| | | } |
| | | success = true; |
| | | return code; |