yf_yzl 2 лет назад
Родитель
Сommit
75db8bae2a
1 измененных файлов с 1 добавлено и 1 удалено
  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")