@@ -32,11 +32,6 @@ $qqwry_filepath = '/abspath/qqwry.dat';
3232echo json_encode(IpLocation::getLocation($ip, $qqwry_filepath), JSON_UNESCAPED_UNICODE) . "\n";
3333echo json_encode(IpLocation::getLocation($ip), JSON_UNESCAPED_UNICODE) . "\n";
3434
35- $ip = '140.205.172.5'; //阿里云官网 ip
36- //{"ip":"140.205.172.5","country":"中国","province":"浙江","city":"杭州市","county":"","isp":"","area":"中国浙江杭州市阿里巴巴网络有限公司BGP数据中心"}
37-
38- $ip = '172.217.27.142';//Google Ip
39- //{"ip":"172.217.27.142","country":"美国","province":"","city":"","county":"","isp":"","area":"美国加利福尼亚州圣克拉拉县山景市谷歌公司"}
4035```
4136
4237## 响应
@@ -61,6 +56,15 @@ $ip = '172.217.27.142';//Google Ip
6156}
6257```
6358
59+ ## 典型返回
60+ ```
61+ {"ip":"172.217.25.14","country":"美国","province":"","city":"","county":"","isp":"","area":"美国加利福尼亚州圣克拉拉县山景市谷歌公司"}
62+ {"ip":"140.205.172.5","country":"中国","province":"浙江","city":"杭州市","county":"","isp":"","area":"中国浙江杭州市阿里巴巴网络有限公司BGP数据中心"}
63+ {"ip":"123.125.115.110","country":"中国","province":"北京","city":"","county":"","isp":"联通","area":"中国北京北京百度网讯科技有限公司联通节点(BGP)"}
64+ {"ip":"221.196.0.0","country":"中国","province":"天津","city":"河北区","county":"","isp":"联通","area":"中国天津河北区联通"}
65+ {"ip":"60.195.153.98","country":"中国","province":"北京","city":"顺义区","county":"","isp":"","area":"中国北京顺义区后沙峪金龙网吧"}
66+ ```
67+
6468## 自己手动更新数据库
6569
66701,http://www.cz88.net/fox/ipdat.shtml
0 commit comments