Skip to content

Commit

Permalink
Fix getIP138 api addr
Browse files Browse the repository at this point in the history
  • Loading branch information
Aoang authored May 18, 2022
1 parent bea5cb2 commit 4d5e9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ <h1 class="title">网站访问检查</h1>
})
},
getIP138: function () {
IP.get("https://2021.ip138.com/", "text").then(function (t) {
IP.get("https://2022.ip138.com/", "text").then(function (t) {
var arr = t.data.split(/\r?\n/);
$$.getElementById("ip-ip138").innerHTML = arr[13].match(/(\d{1,3}\.){3}\d{1,3}/g)[0];
$$.getElementById("geo-ip138").innerHTML = arr[13].split("来自:")[1];
Expand Down

1 comment on commit 4d5e9f6

@vercel
Copy link

@vercel vercel bot commented on 4d5e9f6 May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

qqwry – ./

qqwry-git-main-x2ox.vercel.app
qqwry-x2ox.vercel.app
ip.x2ox.com

Please sign in to comment.