Commit 59810be0 authored by libin's avatar libin

批量会员导入

parent f7f2197b
...@@ -881,6 +881,9 @@ public class AppPermissionService { ...@@ -881,6 +881,9 @@ public class AppPermissionService {
public void setCreateIPInfo(AppUserDetail appUserDetail){ public void setCreateIPInfo(AppUserDetail appUserDetail){
String crtHost = appUserDetail.getCrtHost(); String crtHost = appUserDetail.getCrtHost();
if (log.isDebugEnabled()){
log.debug("解析的地址:【{}】",crtHost);
}
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);
......
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