浏览代码

Merge branch 'test' of http://192.168.136.99:3000/servers/ASJServer into ming

zhangdongming 1 年之前
父节点
当前提交
00b6a262ed
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Object/IPWeatherObject.py

+ 3 - 1
Object/IPWeatherObject.py

@@ -55,7 +55,9 @@ class IPQuery:
                 else:
                     IPAddr.objects.create(ip=ip, district=district, city=city, region=region, country_code=country_id)
 
-                # 确定天气城市
+                self.city = city  # 市
+                self.region = region  # 省/州
+
                 if district != '':
                     self.district = district
                 elif city != '':