|
@@ -2237,8 +2237,9 @@ public class GeoHazardMonitorTokenController {
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
map.put("frontVehicleDistance", vehiclePosition.getTravelMile()-positionServiceOne.getTravelMile());
|
|
map.put("frontVehicleDistance", vehiclePosition.getTravelMile()-positionServiceOne.getTravelMile());
|
|
AjaxResults1 = new AjaxResults(1, "ok", map);
|
|
AjaxResults1 = new AjaxResults(1, "ok", map);
|
|
|
|
+ }else {
|
|
|
|
+ AjaxResults1 = new AjaxResults(1, "ok");
|
|
}
|
|
}
|
|
- AjaxResults1 = new AjaxResults(1, "ok");
|
|
|
|
return SM4Utils.encryptData_ECB(JSONObject.toJSONString(AjaxResults1), key);
|
|
return SM4Utils.encryptData_ECB(JSONObject.toJSONString(AjaxResults1), key);
|
|
} else {
|
|
} else {
|
|
AjaxResults1 = new AjaxResults(0, "新增失败");
|
|
AjaxResults1 = new AjaxResults(0, "新增失败");
|