|
@@ -94,26 +94,24 @@ public class ZhongJiaoXingLu {
|
|
public String vLastLocationV3(String capcityNumber) {
|
|
public String vLastLocationV3(String capcityNumber) {
|
|
try {
|
|
try {
|
|
Map<String, String> map = new HashMap<String, String>(5);
|
|
Map<String, String> map = new HashMap<String, String>(5);
|
|
- String token=dilVersionMapper.getToken();
|
|
|
|
- map.put("token", token);
|
|
|
|
|
|
+// String token=dilVersionMapper.getToken();
|
|
|
|
+// map.put("token", token);
|
|
map.put("cid", cid);
|
|
map.put("cid", cid);
|
|
map.put("srt", srt);
|
|
map.put("srt", srt);
|
|
map.put("timeNearby", "10");
|
|
map.put("timeNearby", "10");
|
|
- map.put("vclN", capcityNumber);
|
|
|
|
- String url = "https://openapi.sinoiov.cn/save/apis/vLastLocationV3";
|
|
|
|
|
|
+ map.put("vnos", capcityNumber+"_2");
|
|
|
|
+ String url = "https://openapi.sinoiov.cn/save/apis/transTimeManageV3";
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
-
|
|
|
|
// 通过 https 方式调用,此方法内部会使用私钥生成签名参数 sign,私钥不会发送
|
|
// 通过 https 方式调用,此方法内部会使用私钥生成签名参数 sign,私钥不会发送
|
|
String res = des.postHttps(url, map);
|
|
String res = des.postHttps(url, map);
|
|
-
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(res);
|
|
JSONObject jsonObject = JSONObject.parseObject(res);
|
|
|
|
+ try{
|
|
|
|
+ jsonObject.put("result",jsonObject.getJSONObject("result").get("firstVcl"));
|
|
|
|
+ }catch (Exception e){}
|
|
if (jsonObject.get("status").toString().equals(1016+"")){
|
|
if (jsonObject.get("status").toString().equals(1016+"")){
|
|
login();
|
|
login();
|
|
- return vLastLocationV3( capcityNumber);
|
|
|
|
}
|
|
}
|
|
- return res;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ return jsonObject.toJSONString();
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
System.out.println("e:" + e.getMessage());
|
|
System.out.println("e:" + e.getMessage());
|
|
}
|
|
}
|