Update and rename IPInfo1.js to IPInfo.js

This commit is contained in:
Shawn
2019-07-17 08:50:11 +08:00
committed by GitHub
parent e6b72a5ab1
commit ac0f38294e

View File

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