用于永安在线ip画像sdk,读取数据库规则打分,并输出结果。 该项目需要依赖算分规则jar包,请联系商务,售后获取。
样例:
样例: ipv4:
IpCheckService ipCheckService = new IpCheckServiceImpl(scoreConf, ipRealtimeFinder,
finderMysql,
ipBaseFinder);
ipv6:
Ipv6CheckService ipv6CheckService = new Ipv6CheckServiceImpl(scoreConf, finder, finder);
IpData data = ipCheckService.checkRealtimeIp("183.197.198.69", true);
System.out.println(data);
data = ipCheckService.checkHistoryIp("36.104.211.44", 1670282889, true);
System.out.println(ipData);
Ipv6Data check = ipv6CheckService.check("240e:0320:0d03", "1977", 1667889809);
System.out.println(check);
check = ipv6CheckService.check("240e:0320:0d03", "1977", System.currentTimeMillis() / 1000);
System.out.println(check);