Skip to content

Commit 24c203c

Browse files
authored
Update README.md
1 parent e069289 commit 24c203c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ $qqwry_filepath = '/abspath/qqwry.dat';
3232
echo json_encode(IpLocation::getLocation($ip, $qqwry_filepath), JSON_UNESCAPED_UNICODE) . "\n";
3333
echo 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

6670
1,http://www.cz88.net/fox/ipdat.shtml

0 commit comments

Comments
 (0)