瀏覽代碼

query weather 2 hours ago

chenhaiyang 4 年之前
父節點
當前提交
9d21b95c39
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/services/weather.py

+ 1 - 1
app/services/weather.py

@@ -25,7 +25,7 @@ class WeatherService(Service):
         }
         params = {
             'cityCode': project_id[2:8],
-            'startDate': get_time_str(60 * 60, flag='ago'),
+            'startDate': get_time_str(60 * 60 * 2, flag='ago'),
             'endDate': self._now_time,
             'minResponse': True
         }