移除源码中硬编码的 API token:NOAA MesoWest 密钥和 CWA 占位符

This commit is contained in:
2569718930@qq.com
2026-05-19 15:18:49 +08:00
parent 96b642ffac
commit 4c6a93498c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -251,7 +251,8 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour
self.cwa_open_data_auth = (
os.getenv("CWA_OPEN_DATA_AUTH")
or os.getenv("CWA_OPEN_DATA_API_KEY")
or "rdec-key-123-45678-011121314"
or ""
)
).strip()
# 磁盘持久化缓存:重启后即可加载上次的预报数据,避免冷启动请求爆发