Update and rename IPInfo.js to IPInfo1.js

This commit is contained in:
Shawn
2019-07-17 08:55:34 +08:00
committed by GitHub
parent ac0f38294e
commit 7707f8028d

View File

@@ -21,7 +21,8 @@ var flags = new Map([[ "AC" , "🇦🇨" ] , [ "AF" , "🇦🇫" ] , [ "AI" , "
var body = $response.body; var body = $response.body;
var bd=body.split('\n')[1]; var bd=body.split('\n')[1];
var obj = JSON.parse(bd); var obj = JSON.parse(bd);
$notify("test","test",obj['location']); $notify("test","test",obj);
$notify("test1","test",obj['location']);
var title = flags.get(obj['country_code']) + ' '+ obj['country_name']; var title = flags.get(obj['country_code']) + ' '+ obj['country_name'];
var subtitle =''+ValidCheck(obj['city'])+'-'+'('+ValidCheck(obj['continent_name'])+')'+''; var subtitle =''+ValidCheck(obj['city'])+'-'+'('+ValidCheck(obj['continent_name'])+')'+'';
var ip = obj['ip']; var ip = obj['ip'];