From 88b80d66e8d27815736a688bc86ca1979b0daabc Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 26 May 2026 19:53:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=9B=BF=E6=8D=A2=E6=97=A7?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=20polyweather-pro.vercel.app=20=E2=86=92=20p?= =?UTF-8?q?olyweather.top?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - payment-host: 移除 vercel 域名,加 www.polyweather.top - CORS: 移除 vercel,加 www - bot: 绑定链接 + 市场概览提示 - weather_sources: User-Agent --- frontend/lib/payment-host.ts | 2 +- src/bot/handlers/basic.py | 4 ++-- src/data_collection/weather_sources.py | 2 +- web/core.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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,