|
@@ -62,7 +62,6 @@ public class ZhongJiaoXingLu {
|
|
|
map.put("qryBtm", routeMap.get("qryBtm").toString());
|
|
|
//判断结束时间是否大于起始时间,且在72小时以内
|
|
|
SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
- SimpleDateFormat simpleDateFormat2=new SimpleDateFormat("yyyy-MM-dd 23:59:59");
|
|
|
Date btm=simpleDateFormat.parse(routeMap.get("qryBtm").toString());//起始时间
|
|
|
Date etm=new Date(btm.getTime()+1000*60*60*72);//最大结束时间
|
|
|
if(etm.getTime() > new Date().getTime()){
|
|
@@ -74,7 +73,7 @@ public class ZhongJiaoXingLu {
|
|
|
&& simpleDateFormat.parse(routeMap.get("qryEtm").toString()).getTime()<etm.getTime()
|
|
|
&& simpleDateFormat.parse(routeMap.get("qryEtm").toString()).getTime() > btm.getTime()){
|
|
|
Date qryEtm = simpleDateFormat.parse(routeMap.get("qryEtm").toString());
|
|
|
- map.put("qryEtm", simpleDateFormat2.format(qryEtm));
|
|
|
+ map.put("qryEtm", simpleDateFormat.format(qryEtm));
|
|
|
}else {
|
|
|
map.put("qryEtm", simpleDateFormat.format(etm));
|
|
|
}
|
|
@@ -85,7 +84,7 @@ public class ZhongJiaoXingLu {
|
|
|
|
|
|
// 通过 https 方式调用,此方法内部会使用私钥生成签名参数 sign,私钥不会发送
|
|
|
String res = des.postHttps(url, map);
|
|
|
- System.out.println("visualRoute"+res);
|
|
|
+// System.out.println("visualRoute"+res);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(res);
|
|
|
if (jsonObject.get("status").toString().equals(1016+"")){
|
|
|
login();
|
|
@@ -112,6 +111,7 @@ public class ZhongJiaoXingLu {
|
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
|
// 通过 https 方式调用,此方法内部会使用私钥生成签名参数 sign,私钥不会发送
|
|
|
String res = des.postHttps(url, map);
|
|
|
+ System.out.println("getCurrentLocation:"+res);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(res);
|
|
|
try{
|
|
|
jsonObject.put("result",jsonObject.getJSONObject("result").get("firstVcl"));
|