...
|
...
|
@@ -40,6 +40,7 @@ public class AreaService { |
|
|
|
|
|
private static final String GET_HIDDEN_ADDRESS = "/erp/passport/gethiddenAddress"; //根据uid获取地址信息
|
|
|
|
|
|
@Autowired
|
|
|
private ServiceCaller serviceCaller;
|
|
|
|
|
|
@Autowired
|
...
|
...
|
@@ -111,10 +112,13 @@ public class AreaService { |
|
|
LOGGER.warn("in getAddressInfo fail, uid {}", uid);
|
|
|
throw new ServiceException(ServiceError.ADDRESS_NULL);
|
|
|
}
|
|
|
|
|
|
LOGGER.info("method users.getAddress result is {}", addressArray);
|
|
|
|
|
|
JSONObject addressJsonObj = (JSONObject) addressArray.parallelStream().filter(addressJson -> {
|
|
|
Integer areaCode = ((JSONObject)addressJson).getInteger("area_code");
|
|
|
return Objects.nonNull(areaCodeEx) && areaCodeEx.equals(areaCode);
|
|
|
}).findFirst().orElse(null);
|
|
|
Integer areaCode = ((JSONObject)addressJson).getInteger("area_code");
|
|
|
return Objects.nonNull(areaCodeEx) && areaCodeEx.equals(areaCode);
|
|
|
}).findFirst().orElse(null);
|
|
|
if (addressJsonObj == null){
|
|
|
LOGGER.warn("in getAddressInfo fail, uid {}, addressArray {}", uid, addressArray);
|
|
|
throw new ServiceException(ServiceError.ADDRESS_NULL);
|
...
|
...
|
|