Update index.py

pull/143/head
midoks 3 years ago
parent dd00a99172
commit d5e992af53
  1. 3
      plugins/webstats/index.py

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

Loading…
Cancel
Save