|
@@ -45,6 +45,8 @@ public class LocationServiceImpl implements LocationService {
|
|
|
private String key;
|
|
|
@Value("${supplier.vehicleTrajectoryQueryOneUrl}")
|
|
|
private String vehicleTrajectoryQueryOneUrl;
|
|
|
+ @Value("${forbidden.plateNum}")
|
|
|
+ private String forbiddenPlateNum;
|
|
|
|
|
|
private OkHttpClient okHttpClient = new OkHttpClient.Builder().build();
|
|
|
private static final Log CLIENT_CHARGE_LOGGER = LogFactory.getLog("CLIENT_CHARGE_LOGGER");
|
|
@@ -254,6 +256,10 @@ public class LocationServiceImpl implements LocationService {
|
|
|
ret.setResultCode(CommonConstant.JK_RETURN_CODE_INVALID_PARAMETER);
|
|
|
ret.setResultBody(CommonConstant.INVALID_PARAMETER);
|
|
|
return false;
|
|
|
+ } else if (forbiddenPlateNum.equals(requestObject.getCustomBody().getPlateNum())) {
|
|
|
+ ret.setResultCode(CommonConstant.JK_RETURN_CODE_OTHER_ERROR);
|
|
|
+ ret.setResultBody(CommonConstant.OTHER_ERROR);
|
|
|
+ return false;
|
|
|
} else {
|
|
|
return true;
|
|
|
}
|