Commit 78b166f5 authored by hezhen's avatar hezhen

123

parent a6d77922
...@@ -832,8 +832,10 @@ public class AppPermissionService { ...@@ -832,8 +832,10 @@ public class AppPermissionService {
* @param appUserDetail * @param appUserDetail
*/ */
public void setCreateIPInfo(AppUserDetail appUserDetail){ public void setCreateIPInfo(AppUserDetail appUserDetail){
String crtHost = appUserDetail.getCrtHost(); String crtHost = appUserDetail.getCrtHost();
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);
log.info("----setCreateIPInfo--crtHost========"+crtHost);
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);
// Integer provinceCode = ipJsonObject.getInteger(IPAddress.PROVINCE_CODE); // Integer provinceCode = ipJsonObject.getInteger(IPAddress.PROVINCE_CODE);
......
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