【接口】自动获取用户IP所属位置

自动IP定位接口: http://api.iapp.top/weizhi.php

直接访问或者提交post

返回json数据:

{"code":0,"data":{"ip":"222.216.92.243","country":"中国","area":"","region":"广西","city":"钦州","county":"XX","isp":"电信","country_id":"CN","area_id":"","region_id":"450000","city_id":"450700","county_id":"xx","isp_id":"100017"}} 

1234.PNG

 

 

 

 iApp提交代码:

t()
{
s a = "http://api.iapp.top/weizhi.php"
hs(a, b)
syso(b)
json(b,c)
json(c, "get", "data", data)
json(data,d)
//获取用户ip
json(d, "get", "ip", ip)
syso(ip)
//获取用户国家
json(d, "get", "country", gj)
syso(gj)
//获取用户省份
json(d, "get", "region", sf)
syso(sf)
//获取用户城市
json(d, "get", "city", cs)
syso(cs)
}


发表评论 / Comment

用心评论~