Browse Source

fix bug

1.x
xiaoz 6 years ago
parent
commit
ef27884827
  1. 5
      static/embed.js
  2. 2
      tpl/user/footer.php

5
static/embed.js

@ -345,11 +345,12 @@ function compress(id){
//IP查询 //IP查询
function ipquery(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') { if(status == 'success') {
var info = JSON.parse(data);
layer.open({ layer.open({
title: 'IP查询结果:' title: 'IP查询结果:'
,content: data ,content: info.address
,time:3000 ,time:3000
}); });
} }

2
tpl/user/footer.php

@ -18,6 +18,6 @@
<!-- 底部END --> <!-- 底部END -->
<script src="./static/jquery.min.js"></script> <script src="./static/jquery.min.js"></script>
<script src="./static/layui/layui.js"></script> <script src="./static/layui/layui.js"></script>
<script src="./static/embed.js?v=1.31"></script> <script src="./static/embed.js?v=1.40"></script>
</body> </body>
</html> </html>
Loading…
Cancel
Save