推送消息时间改为观测数据时间,不再用当前本地时间

This commit is contained in:
2569718930@qq.com
2026-05-13 21:43:26 +08:00
parent 7555da8e6a
commit 1a4d75c126
+4 -2
View File
@@ -1016,8 +1016,10 @@ def _run_high_freq_airport_cycle(
state_dirty = True
continue
local_time = city_weather.get("local_time") or ""
message = _build_airport_status_message(city, city_weather, deb_pred, local_time)
# 用观测数据时间而非当前本地时间
airport_cur = city_weather.get("airport_current") or {}
obs_local = airport_cur.get("obs_time") or city_weather.get("local_time") or ""
message = _build_airport_status_message(city, city_weather, deb_pred, obs_local)
sent = False
for chat_id in chat_ids: