| | |
| | | |
| | | Logger logger = LoggerFactory.getLogger(ConfigParser.class); |
| | | |
| | | Logger debugLogger = LoggerFactory.getLogger("debug"); |
| | | Logger deviceGeoLogger = LoggerFactory.getLogger("deviceGeo"); |
| | | |
| | | @Resource |
| | | private DetailSystemConfigService configService; |
| | |
| | | } |
| | | IPUtil.IPInfo ipInfo = null; |
| | | if (areaConfigList != null && areaConfigList.size() > 0) { |
| | | // if(!"appstore".equalsIgnoreCase(acceptData.getChannel())) { |
| | | try { |
| | | ipInfo = ipManager.getIPInfo(ip); |
| | | if (ipInfo != null) { |
| | | debugLogger.info("IP归属地:IP-{},版本-{}, 渠道-{},省-{}, 市-{}", ip, acceptData.getVersion(), acceptData.getChannel(), ipInfo.getProvince(), ipInfo.getCity()); |
| | | deviceGeoLogger.info("IP归属地:IP-{},版本-{}, 渠道-{},国-{}, 省-{}, 市-{}", ip, acceptData.getVersion(), acceptData.getChannel(), ipInfo.getCountry(), ipInfo.getProvince(), ipInfo.getCity()); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |