修复机场观测面板不显示 + 放宽 AMOS 展示条件

This commit is contained in:
2569718930@qq.com
2026-05-10 19:06:22 +08:00
parent 3f351ac60c
commit 40cd8fc2a6
2 changed files with 7 additions and 9 deletions
@@ -651,14 +651,12 @@ export function AiPinnedCityCard({
/>
</div>
{(detail?.amos || detail?.airport_current) ? (
<AmosRunwayPanel
amos={detail.amos}
isEn={isEn}
tempSymbol={tempSymbol}
airportCurrent={detail?.airport_current ?? null}
/>
) : null}
<AmosRunwayPanel
amos={detail?.amos}
isEn={isEn}
tempSymbol={tempSymbol}
airportCurrent={detail?.airport_current ?? null}
/>
<ModelEvidencePanel detail={detail} isEn={isEn} />
</div>
+1 -1
View File
@@ -2487,7 +2487,7 @@ def _analyze(
"mgm": mgm_data,
"mgm_nearby": raw.get("mgm_nearby", []),
"nearby_source": raw.get("nearby_source") or ("mgm" if city.lower() in TURKISH_MGM_CITIES else "metar_cluster"),
"amos": amos_data if amos_data and (amos_data.get("temp_c") is not None or amos_data.get("runway_obs") is not None) else None,
"amos": amos_data if amos_data and amos_data.get("source") else None,
"forecast": {
"today_high": om_today,
"daily": forecast_daily,