|
@@ -81,14 +81,14 @@ public class HyOrderTravelPathServiceImpl extends ServiceImpl<HyOrderTravelPathM
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- public void login() {
|
|
|
|
|
|
+ public HyToken login() {
|
|
try {
|
|
try {
|
|
Map<String, String> map = new HashMap<String, String>(4);
|
|
Map<String, String> map = new HashMap<String, String>(4);
|
|
map.put("user", "ec841c89-4550-4dae-a377-0bda27185932");
|
|
map.put("user", "ec841c89-4550-4dae-a377-0bda27185932");
|
|
map.put("pwd", "z6ZJcF32T28EF9Tkn8923uDT42609w");
|
|
map.put("pwd", "z6ZJcF32T28EF9Tkn8923uDT42609w");
|
|
map.put("srt", "762ea319-5f05-4810-aa28-5f92c99485ae");
|
|
map.put("srt", "762ea319-5f05-4810-aa28-5f92c99485ae");
|
|
map.put("cid", "871a05fd-a098-49af-9760-27ce9ecf61e3");
|
|
map.put("cid", "871a05fd-a098-49af-9760-27ce9ecf61e3");
|
|
- String url = "https://openapi-test.sinoiov.cn/save/apis/login";
|
|
|
|
|
|
+ String url = "https://zhiyunopenapi.95155.com/save/apis/login";
|
|
// 设置 http 读写超时
|
|
// 设置 http 读写超时
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
System.out.println("请求地址:" + url);
|
|
System.out.println("请求地址:" + url);
|
|
@@ -111,9 +111,11 @@ public class HyOrderTravelPathServiceImpl extends ServiceImpl<HyOrderTravelPathM
|
|
token.setToken(map1.get("\"result\"").replaceAll("\"", ""));
|
|
token.setToken(map1.get("\"result\"").replaceAll("\"", ""));
|
|
hyToken.insert(token);
|
|
hyToken.insert(token);
|
|
System.out.println("返回:" + res);
|
|
System.out.println("返回:" + res);
|
|
|
|
+ return token;
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
System.out.println("e:" + e.getMessage());
|
|
System.out.println("e:" + e.getMessage());
|
|
}
|
|
}
|
|
|
|
+ return null;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -142,14 +144,12 @@ public class HyOrderTravelPathServiceImpl extends ServiceImpl<HyOrderTravelPathM
|
|
HyToken token = hyToken.selectOne(new EntityWrapper<HyToken>()
|
|
HyToken token = hyToken.selectOne(new EntityWrapper<HyToken>()
|
|
.eq("delete_flag", 0));
|
|
.eq("delete_flag", 0));
|
|
if (token == null) {
|
|
if (token == null) {
|
|
- login();
|
|
|
|
- token = hyToken.selectOne(new EntityWrapper<HyToken>()
|
|
|
|
- .eq("delete_flag", "0"));
|
|
|
|
|
|
+ token = login();
|
|
}
|
|
}
|
|
Map<String, String> map = new HashMap<String, String>(4);
|
|
Map<String, String> map = new HashMap<String, String>(4);
|
|
map.put("token", token.getToken());
|
|
map.put("token", token.getToken());
|
|
- map.put("cid", "26f33235-dff0-43d6-871b-9d1682996c12");
|
|
|
|
- map.put("srt", "dfd28720-6c40-4029-8f3f-88e7e0ceec74");
|
|
|
|
|
|
+ map.put("cid", "871a05fd-a098-49af-9760-27ce9ecf61e3");
|
|
|
|
+ map.put("srt", "762ea319-5f05-4810-aa28-5f92c99485ae");
|
|
map.put("vclN", hyCarrierInfo.getCarNo());
|
|
map.put("vclN", hyCarrierInfo.getCarNo());
|
|
//车牌颜色
|
|
//车牌颜色
|
|
if ("黄色".equals(hyDriverCarInfo.getCarNumberColour())) {
|
|
if ("黄色".equals(hyDriverCarInfo.getCarNumberColour())) {
|
|
@@ -171,7 +171,7 @@ public class HyOrderTravelPathServiceImpl extends ServiceImpl<HyOrderTravelPathM
|
|
String endDate = f.format(hyCarrierInfo.getUnloadingDate());
|
|
String endDate = f.format(hyCarrierInfo.getUnloadingDate());
|
|
map.put("qryEtm", endDate);
|
|
map.put("qryEtm", endDate);
|
|
|
|
|
|
- String url = "https://openapi-test.sinoiov.cn/save/apis/routerPath";
|
|
|
|
|
|
+ String url = "https://zhiyunopenapi.95155.com/save/apis/routerPath";
|
|
// 设置 http 读写超时
|
|
// 设置 http 读写超时
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
System.out.println("请求地址:" + url);
|
|
System.out.println("请求地址:" + url);
|
|
@@ -215,7 +215,7 @@ public class HyOrderTravelPathServiceImpl extends ServiceImpl<HyOrderTravelPathM
|
|
String date = f.format(new Date(System.currentTimeMillis()));
|
|
String date = f.format(new Date(System.currentTimeMillis()));
|
|
map.put("qryEtm", date);
|
|
map.put("qryEtm", date);
|
|
|
|
|
|
- String url = "https://openapi-test.sinoiov.cn/save/apis/routerPath";
|
|
|
|
|
|
+ String url = "https://zhiyunopenapi.95155.com/save/apis/routerPath";
|
|
// 设置 http 读写超时
|
|
// 设置 http 读写超时
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
DataExchangeService des = new DataExchangeService(5000, 8000);
|
|
System.out.println("请求地址:" + url);
|
|
System.out.println("请求地址:" + url);
|