Update and rename IPInf.js to IPInfo.js

This commit is contained in:
Shawn
2019-07-17 09:22:36 +08:00
committed by GitHub
parent 54b527133c
commit a2a7339dd9

View File

@@ -21,10 +21,8 @@ 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",bd);
$notify("test1","test",obj['country_code']);
var title = (obj['location'])['captial']+(obj['location'])['geoname_id']
//flags.get(obj['country_code']) + ' '+ obj['country_name'];
//$notify("TEST","test",bd);
var title =flags.get(obj['country_code']) + ' '+ obj['country_name'];
var subtitle =''+ValidCheck(obj['city'])+'-'+'('+ValidCheck(obj['continent_name'])+')'+'';
var ip = obj['ip'];
var description = obj['country_name'] + '-' +ValidCheck(obj['city']) + '\n' + obj['type'] + '\n' + obj['ip'];