| | |
| | | HttpRequest post = HttpUtil.createPost("https://zhyn.cg.gz.gov.cn/map/web/vehicleCtrl/" + terminalId + "/cameraShot"); |
| | | post.header("operate-terminal", "4"); |
| | | post.header("token", accountLogin.getToken()); |
| | | log.info("【2018年协议发送拍摄指令接口】请求地址:" + post.getUrl()); |
| | | Map<String, Object> body = new HashMap<>(); |
| | | body.put("channelId", channelId); |
| | | log.info("【2018年协议发送拍摄指令接口】请求参数:" + JSON.toJSONString(body)); |
| | |
| | | HttpRequest get = HttpUtil.createGet("https://zhyn.cg.gz.gov.cn/api/cws-business/biz-device-send-records/v1/cameraShot?vehicleId=" + vehicleId + "&vehicleType=" + vehicleType + "&terminalId=" + terminalId + "&channelId=" + channelId); |
| | | get.header("operate-terminal", "4"); |
| | | get.header("token", accountLogin.getToken()); |
| | | Map<String, Object> body = new HashMap<>(); |
| | | log.info("【2023年协议发送拍摄指令接口】请求参数:" + get.getUrl()); |
| | | HttpResponse execute = get.execute(); |
| | | if(401 == execute.getStatus()){ |
| | |
| | | if(null == data){ |
| | | return null; |
| | | } |
| | | data = data.replaceAll(";", ""); |
| | | return "https://zhyn-pic.cg.gz.gov.cn" + data; |
| | | } |
| | | |
| | |
| | | if(null == data){ |
| | | return null; |
| | | } |
| | | data = data.replaceAll(";", ""); |
| | | return "https://zhyn-pic.cg.gz.gov.cn" + data; |
| | | } |
| | | |