yf_yzl %!s(int64=2) %!d(string=hai) anos
pai
achega
75db8bae2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      smartfarming/utils.py

+ 1 - 1
smartfarming/utils.py

@@ -500,7 +500,7 @@ def setDeviceSnap(appId,appSecret,deviceId,channelId="0"):
 
 def get_weather(ip):
     # 获取天气
-    res = requests.get("https://v0.yiketianqi.com/api?unescape=1&version=v91&appid=69334222&appsecret=2u4bHXHD&ext=")
+    res = requests.get("http://v0.yiketianqi.com/api?unescape=1&version=v91&appid=69334222&appsecret=2u4bHXHD&ext=")
     response = json.loads(res.text)
     return response.get("data")