Commit b7a01086 authored by libin's avatar libin

批量会员导入

parent 59810be0
...@@ -884,6 +884,7 @@ public class AppPermissionService { ...@@ -884,6 +884,7 @@ public class AppPermissionService {
if (log.isDebugEnabled()){ if (log.isDebugEnabled()){
log.debug("解析的地址:【{}】",crtHost); log.debug("解析的地址:【{}】",crtHost);
} }
try {
String ipAddress = restTemplate.getForObject(String.format("%s%s", IPAddress.BASE_IP_PARSING_URL, crtHost), String.class); String ipAddress = restTemplate.getForObject(String.format("%s%s", IPAddress.BASE_IP_PARSING_URL, crtHost), String.class);
String data = JSONObject.parseObject(ipAddress).getString(IPAddress.BASE_DATA); String data = JSONObject.parseObject(ipAddress).getString(IPAddress.BASE_DATA);
JSONObject ipJsonObject = JSONObject.parseObject(data); JSONObject ipJsonObject = JSONObject.parseObject(data);
...@@ -893,6 +894,10 @@ public class AppPermissionService { ...@@ -893,6 +894,10 @@ public class AppPermissionService {
appUserDetail.setProvinceCode(Integer.valueOf(String.valueOf(regionDTO.getParentId()))); appUserDetail.setProvinceCode(Integer.valueOf(String.valueOf(regionDTO.getParentId())));
appUserDetail.setCityCode(Integer.valueOf(String.valueOf(regionDTO.getId()))); appUserDetail.setCityCode(Integer.valueOf(String.valueOf(regionDTO.getId())));
} }
}catch (Exception e){
log.error("地址解析失败:【{}】",e.getMessage());
}
} }
/** /**
......
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