Commit 2fd6bb61 by 高晓磊

GPS去掉map_type

parent eb5b591a
......@@ -119,9 +119,6 @@ public class GpsOOUtil {
if(StringUtils.isEmpty(imeis)){
return null;
}
if(StringUtils.isEmpty(mapType)){
mapType="GOOGLE";
}
String commonParam = getCommonParam(account, password);
if(commonParam==null){
......@@ -139,7 +136,10 @@ public class GpsOOUtil {
}
}
String sendParam=commonParam +"&imeis="+String.join(",",imeisInfoKey)+"&map_type="+mapType;
String sendParam=commonParam +"&imeis="+String.join(",",imeisInfoKey);
if(StringUtils.isNotEmpty(mapType)){
sendParam +="&map_type="+mapType;
}
String sendPost = HttpSendUtil.sendPost(TRACKING_URL, sendParam, StandardCharsets.UTF_8.name());
JSONObject postStr = new JSONObject(sendPost);
int ret = postStr.getInt("ret");
......@@ -181,9 +181,6 @@ public class GpsOOUtil {
if(StringUtils.isEmpty(imei)){
return null;
}
if(StringUtils.isEmpty(mapType)){
mapType="GOOGLE";
}
String commonParam = getCommonParam(account, password);
if(commonParam==null){
......@@ -193,7 +190,10 @@ public class GpsOOUtil {
datas=new ArrayList<>();
}
String sendParam=commonParam +"&imei="+imei+"&map_type="+mapType+"&begin_time="+beginTime+"&end_time="+endTime;
String sendParam=commonParam +"&imei="+imei+"&begin_time="+beginTime+"&end_time="+endTime;
if(StringUtils.isNotEmpty(mapType)){
sendParam +="&map_type="+mapType;
}
String sendPost = HttpSendUtil.sendPost(HISTORY_URL, sendParam, StandardCharsets.UTF_8.name());
JSONObject postStr = new JSONObject(sendPost);
int ret = postStr.getInt("ret");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment