diff --git a/frontend/lib/payment-host.ts b/frontend/lib/payment-host.ts index b10f9f61..61a3d716 100644 --- a/frontend/lib/payment-host.ts +++ b/frontend/lib/payment-host.ts @@ -1,6 +1,6 @@ const DEFAULT_ALLOWED_PAYMENT_HOSTS = [ - "polyweather-pro.vercel.app", "polyweather.top", + "www.polyweather.top", "localhost", "127.0.0.1", ]; diff --git a/src/bot/handlers/basic.py b/src/bot/handlers/basic.py index ae5bf923..5e597f1b 100644 --- a/src/bot/handlers/basic.py +++ b/src/bot/handlers/basic.py @@ -298,7 +298,7 @@ class BasicCommandHandler: trace.set_status("blocked", f"not_group_member:{member_status or 'none'}") return token = self.io_layer.db.create_bind_token(user.id, ttl_minutes=10) - app_url = str(os.getenv("POLYWEATHER_APP_URL") or "https://polyweather-pro.vercel.app").rstrip("/") + app_url = str(os.getenv("POLYWEATHER_APP_URL") or "https://polyweather.top").rstrip("/") bind_url = f"{app_url}/account?bind_token={token}" self.bot.reply_to( message, @@ -535,7 +535,7 @@ class BasicCommandHandler: self.bot.reply_to( message, - "ℹ️ 市场概览 (Focus Digest) 功能已移除。\n频道继续接收关键市场警报推送;如需查看当前市场状态,请访问 https://polyweather-pro.vercel.app/", + "ℹ️ 市场概览 (Focus Digest) 功能已移除。\n频道继续接收关键市场警报推送;如需查看当前市场状态,请访问 https://polyweather.top/", disable_web_page_preview=True, ) trace.set_status("ok", "removed") diff --git a/src/data_collection/weather_sources.py b/src/data_collection/weather_sources.py index 3580d872..eed7c690 100644 --- a/src/data_collection/weather_sources.py +++ b/src/data_collection/weather_sources.py @@ -158,7 +158,7 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour self.user_agent = str( os.getenv( "POLYWEATHER_USER_AGENT", - "PolyWeather/1.0 (+https://polyweather-pro.vercel.app)", + "PolyWeather/1.0 (+https://polyweather.top)", ) ).strip() self.session = httpx.Client( diff --git a/web/core.py b/web/core.py index c1d49251..3b4f7f5c 100644 --- a/web/core.py +++ b/web/core.py @@ -37,7 +37,7 @@ app = FastAPI(title="PolyWeather Map", version="1.0") _cors_origins = os.getenv( "WEB_CORS_ORIGINS", - "http://localhost:3000,http://127.0.0.1:3000,https://polyweather-pro.vercel.app,https://polyweather.top,https://api.polyweather.top", + "http://localhost:3000,http://127.0.0.1:3000,https://polyweather.top,https://www.polyweather.top,https://api.polyweather.top", ) app.add_middleware( CORSMiddleware,