From ef2788482709326b31dc4f80d681baab1e587e56 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 6 Nov 2018 19:43:40 +0800 Subject: [PATCH] fix bug --- static/embed.js | 5 +++-- tpl/user/footer.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/static/embed.js b/static/embed.js index efdf4aa..3d5a5ae 100644 --- a/static/embed.js +++ b/static/embed.js @@ -345,11 +345,12 @@ function compress(id){ //IP查询 function ipquery(ip){ - $.get("https://ip.awk.sh/api.php?data=addr&ip=" + ip,function(data,status){ + $.get("https://api.ttt.sh/ip/qqwry/" + ip,function(data,status){ if(status == 'success') { + var info = JSON.parse(data); layer.open({ title: 'IP查询结果:' - ,content: data + ,content: info.address ,time:3000 }); } diff --git a/tpl/user/footer.php b/tpl/user/footer.php index e7e6cc9..42a6817 100644 --- a/tpl/user/footer.php +++ b/tpl/user/footer.php @@ -18,6 +18,6 @@ - + \ No newline at end of file