修复机场观测面板不显示 + 放宽 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> </div>
{(detail?.amos || detail?.airport_current) ? ( <AmosRunwayPanel
<AmosRunwayPanel amos={detail?.amos}
amos={detail.amos} isEn={isEn}
isEn={isEn} tempSymbol={tempSymbol}
tempSymbol={tempSymbol} airportCurrent={detail?.airport_current ?? null}
airportCurrent={detail?.airport_current ?? null} />
/>
) : null}
<ModelEvidencePanel detail={detail} isEn={isEn} /> <ModelEvidencePanel detail={detail} isEn={isEn} />
</div> </div>
+1 -1
View File
@@ -2487,7 +2487,7 @@ def _analyze(
"mgm": mgm_data, "mgm": mgm_data,
"mgm_nearby": raw.get("mgm_nearby", []), "mgm_nearby": raw.get("mgm_nearby", []),
"nearby_source": raw.get("nearby_source") or ("mgm" if city.lower() in TURKISH_MGM_CITIES else "metar_cluster"), "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": { "forecast": {
"today_high": om_today, "today_high": om_today,
"daily": forecast_daily, "daily": forecast_daily,