|
|
@ -988,6 +988,7 @@ def getIpStatList(): |
|
|
|
if ip == "127.0.0.1": |
|
|
|
if ip == "127.0.0.1": |
|
|
|
clist[i]['area'] = "本地" |
|
|
|
clist[i]['area'] = "本地" |
|
|
|
elif geoip_exists: |
|
|
|
elif geoip_exists: |
|
|
|
|
|
|
|
try: |
|
|
|
response = reader.city(ip) |
|
|
|
response = reader.city(ip) |
|
|
|
country = response.country.names["zh-CN"] |
|
|
|
country = response.country.names["zh-CN"] |
|
|
|
|
|
|
|
|
|
|
@ -1011,6 +1012,8 @@ def getIpStatList(): |
|
|
|
city = "" |
|
|
|
city = "" |
|
|
|
|
|
|
|
|
|
|
|
clist[i]['area'] = country + subdivisions + city |
|
|
|
clist[i]['area'] = country + subdivisions + city |
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
clist[i]['area'] = "内网?" |
|
|
|
|
|
|
|
|
|
|
|
return mw.returnJson(True, 'ok', clist) |
|
|
|
return mw.returnJson(True, 'ok', clist) |
|
|
|
|
|
|
|
|
|
|
|