Update IP_API1.js

This commit is contained in:
Shawn
2019-07-22 15:48:40 +08:00
committed by GitHub
parent d6e10245ce
commit 78aa698cf6

View File

@@ -23,8 +23,8 @@ var body = $response.body;
var obj = JSON.parse(body); var obj = JSON.parse(body);
//$notify("TEST","test",bd); //$notify("TEST","test",bd);
var title =flags.get(obj['countryCode']) + ' '+ obj['country']; var title =flags.get(obj['countryCode']) + ' '+ obj['country'];
var subtitle =''+ValidCheck(obj['city'])+'-'+'('+ ValidCheck(obj['isp'])+')'+''; var subtitle =''+ValidCheck(obj['city'])+'-'+'('+ ValidCheck(obj['org'])+')'+'';
$notify("TEST",title,subtitle); //$notify("TEST",title,subtitle);
var ip = obj['query']; var ip = obj['query'];
var description = obj['org'] + '-' +ValidCheck(obj['regionName'])+ '\n' + obj['query'] + '\n' + obj['timezone']; var description = obj['isp'] + '-' +ValidCheck(obj['regionName'])+ '\n' + obj['query'] + '\n' + obj['timezone'];
$done({title, subtitle, ip, description}); $done({title, subtitle, ip, description});