| | |
| | | log.info("【获取车辆列表】请求参数:" + JSON.toJSONString(body)); |
| | | post.body(JSON.toJSONString(body)); |
| | | HttpResponse execute = post.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | accountLogin = null; |
| | | if(num == 3){ |
| | |
| | | log.info("【获取船舶列表】请求参数:" + JSON.toJSONString(body)); |
| | | post.body(JSON.toJSONString(body)); |
| | | HttpResponse execute = post.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |
| | |
| | | post.body("{}"); |
| | | log.info("【2018年协议车辆在线】请求参数:" + post.getUrl()); |
| | | HttpResponse execute = post.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |
| | |
| | | get.header("token", accountLogin.getToken()); |
| | | log.info("【2023年协议车辆在线】请求参数:" + get.getUrl()); |
| | | HttpResponse execute = get.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |
| | |
| | | log.info("【2018年协议发送拍摄指令接口】请求参数:" + JSON.toJSONString(body)); |
| | | post.body(JSON.toJSONString(body)); |
| | | HttpResponse execute = post.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |
| | |
| | | get.header("token", accountLogin.getToken()); |
| | | log.info("【2023年协议发送拍摄指令接口】请求参数:" + get.getUrl()); |
| | | HttpResponse execute = get.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |
| | |
| | | get.header("token", accountLogin.getToken()); |
| | | log.info("【2018年协议车辆获取拍摄图片】请求参数:" + get.getUrl()); |
| | | HttpResponse execute = get.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |
| | |
| | | get.header("token", accountLogin.getToken()); |
| | | log.info("【2023年协议车辆获取拍摄图片】请求参数:" + get.getUrl()); |
| | | HttpResponse execute = get.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |
| | |
| | | log.info("请求参数:" + JSON.toJSONString(body)); |
| | | post.body(JSON.toJSONString(body)); |
| | | HttpResponse execute = post.execute(); |
| | | if(401 == execute.getStatus()){ |
| | | if(401 == execute.getStatus() || 403 == execute.getStatus()){ |
| | | log.error("token失效,重新登录"); |
| | | if(num == 3){ |
| | | log.error("token失效,请联系管理员"); |