Update and rename IPInfo2.js to IPInfo.js

This commit is contained in:
Shawn
2019-07-17 10:00:02 +08:00
committed by GitHub
parent f1d38b9453
commit 8c30605a1f

View File

@@ -22,8 +22,7 @@ var body = $response.body;
var bd=body.split('\n')[1];
var obj = JSON.parse(bd);
//$notify("TEST","test",bd);
var title =obj["latitude"];
//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 ip = obj['ip'];
var description = obj['country_name'] + '-' +ValidCheck(obj['city']) + '\n' + obj['type'] + '\n' + obj['ip'];