From 5fa3bb1b592bf40d7c8e4abd2e0ba2c6991237bd Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Wed, 20 May 2026 18:41:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E8=B7=91=E9=81=93=E5=9F=8E=E5=B8=82?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=81=A2=E5=A4=8D=E6=99=AE=E9=80=9A=E6=9C=BA?= =?UTF-8?q?=E5=9C=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/telegram_push.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/utils/telegram_push.py b/src/utils/telegram_push.py index efd5d2db..b80097cf 100644 --- a/src/utils/telegram_push.py +++ b/src/utils/telegram_push.py @@ -1014,10 +1014,16 @@ def _build_airport_status_message( lines.append("") temp_symbol = str(city_weather.get("temp_symbol") or "°C").strip() cur_str = f"{display_temp:.1f}{temp_symbol}" if display_temp is not None else "--" - lines.append(f"结算跑道当前:{cur_str}") + if has_runway: + lines.append(f"结算跑道当前:{cur_str}") + else: + lines.append(f"当前:{cur_str}") if max_so_far is not None: time_str = f"({max_temp_time})" if max_temp_time else "" - lines.append(f"今日跑道高点:{max_so_far:.1f}{temp_symbol}{time_str}") + if has_runway: + lines.append(f"今日跑道高点:{max_so_far:.1f}{temp_symbol}{time_str}") + else: + lines.append(f"日高:{max_so_far:.1f}{temp_symbol}{time_str}") if slope_15m is not None: sign = "+" if slope_15m >= 0 else "" lines.append(f"15分钟趋势:{sign}{slope_15m:.1f}°C")