|
@ -1688,13 +1688,18 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
}
|
|
|
|
|
|
public com.alibaba.fastjson.JSONObject getAqgDeviceInfo2(String imei){
|
|
|
String url = MessageFormat.format(AqgConfig.deviceInfo, imei);
|
|
|
HttpEntity<com.alibaba.fastjson.JSONObject> response = httpClientUtil.aqgCookieHttp(url, null, HttpMethod.GET, getCookie());
|
|
|
com.alibaba.fastjson.JSONObject json = response.getBody();
|
|
|
if(!json.getBoolean("success")){
|
|
|
return null;
|
|
|
try {
|
|
|
String url = MessageFormat.format(AqgConfig.deviceInfo, imei);
|
|
|
HttpEntity<com.alibaba.fastjson.JSONObject> response = httpClientUtil.aqgCookieHttp(url, null, HttpMethod.GET, getCookie());
|
|
|
com.alibaba.fastjson.JSONObject json = response.getBody();
|
|
|
if(!json.getBoolean("success")){
|
|
|
return null;
|
|
|
}
|
|
|
return json.getJSONObject("obj");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return null;
|
|
|
}
|
|
|
return json.getJSONObject("obj");
|
|
|
}
|
|
|
|
|
|
/**
|