Skip to content

Commit

Permalink
简单修改
Browse files Browse the repository at this point in the history
  • Loading branch information
moieo committed Jul 21, 2024
1 parent e4b04ac commit 0fe404d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"version": "7.0.0"
},
"dependencies": {
"babel-polyfill": "^6.26.0",
"hexo": "7.0.0",
"hexo-deployer-git": "^3.0.0",
"hexo-footnote": "^1.0.4",
Expand All @@ -30,7 +31,6 @@
"hexo-server": "^3.0.0",
"hexo-tag-aplayer": "^3.0.4",
"hexo-theme-landscape": "^0.0.3",
"babel-polyfill": "^6.26.0",
"lodash": "^4.17.21",
"utils-merge": "^1.0.1"
}
Expand Down
3 changes: 2 additions & 1 deletion source/_data/links/site_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
url: /lost_time
- title: 生日查圆周率
url: /birthtopi

- title: IP接口
url: /2022/07/23/IP查询接口分享/
18 changes: 13 additions & 5 deletions source/_posts/IP查询接口分享.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,18 @@ curl https://api.myip.la/cn?json

<!-- tab 请求接口 -->

接口地址:https://api.moieo.top/ip/114.114.114.114
接口地址:POST https://api.moieo.cn/ip/114.114.114.114
请求头

| 名称 | 注释 |
| --- | --- |
| timestamp | 时间戳(ms) |

请求示例
例如 IP 为:114.114.114.114

```bash
curl https://api.moieo.top/ip/114.114.114.114
curl -XPOST -H "timestamp: $(date +%s%3N)" https://api.moieo.cn/ip/114.114.114.114
```

<!-- endtab -->
Expand All @@ -63,10 +69,12 @@ curl https://api.moieo.top/ip/114.114.114.114
```json
{
"code": 200,
"msg": "Success",
"msg": "success",
"data": {
"addr": "江苏省南京市",
"oper": "南京信风网络科技有限公司GreatbitDNS服务器"
"ip": "114.114.114.114",
"ip_number": 1920103026,
"location": "江苏省南京市",
"net_service": "南京信风网络科技有限公司GreatbitDNS服务器"
}
}
```
Expand Down

0 comments on commit 0fe404d

Please sign in to comment.