From ad16ae6b3b106d72a65193d7dce8221b60bb997c Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 18 May 2026 18:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E6=88=B7=E9=A1=B5=20Telegram=20?= =?UTF-8?q?=E5=8C=BA=E5=9D=97=E4=BB=85=E4=BB=98=E8=B4=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8F=AF=E8=A7=81=EF=BC=8C=E7=A7=BB=E9=99=A4=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E7=9A=84=E9=A2=91=E9=81=93=E5=8D=87=E7=BA=A7=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=92=8C=E5=B8=82=E5=9C=BA=E7=9B=91=E6=8E=A7=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/account/AccountCenter.tsx | 57 +------------------ 1 file changed, 2 insertions(+), 55 deletions(-) diff --git a/frontend/components/account/AccountCenter.tsx b/frontend/components/account/AccountCenter.tsx index 20dd5b33..318ea400 100644 --- a/frontend/components/account/AccountCenter.tsx +++ b/frontend/components/account/AccountCenter.tsx @@ -240,8 +240,6 @@ const TELEGRAM_GROUP_URL = String( const TELEGRAM_BOT_URL = String( process.env.NEXT_PUBLIC_TELEGRAM_BOT_URL || "https://t.me/WeatherQuant_bot", ).trim(); -const TELEGRAM_MARKET_CHANNEL_URL = "https://t.me/+hGAk7JsjtdhiOTUx"; -const TELEGRAM_TOPICS_GROUP_URL = "https://t.me/+8vel7rwjZagxODUx"; const SUBSCRIPTION_HELP_HREF = "/subscription-help"; const PAYMENT_RECOVERY_STORAGE_KEY = "polyweather:lastPaymentRecovery"; const PAYMENT_RECOVERY_TTL_MS = 6 * 60 * 60 * 1000; @@ -731,16 +729,6 @@ export function AccountCenter() { telegramHint: isEn ? "Send the command below to the polyweather bot to sync notifications and access." : "将下方命令发送给polyweather机器人,实现全平台气象查询与权限同步。", - telegramUpgradeTitle: isEn - ? "Channel Upgrade: New Topics Group Live" - : "频道升级通知:新话题群组已上线", - telegramUpgradeBody: isEn - ? "Real-time airport temperature pushes are migrating to the new PolyWeather Topics group, organized by city for better tracking. Current channel will stop updating and be deleted in 3 days — please join the new group now." - : "为了更好地按城市分类推送,后续实时机场温度推送将迁移至新的 PolyWeather Topics 群组。当前频道将在 3 天后停止更新并删除,请及时迁移。", - telegramUpgradeFeatures: isEn - ? "Independent city topics:" - : "支持独立城市话题订阅:", - telegramUpgradeJoin: isEn ? "Join New Group" : "加入新群", paymentManualSupport: isEn ? "If payment succeeds but Pro is still not activated, email yhrsc30@gmail.com. This project is currently maintained by one developer, so manual recovery may be needed in edge cases." : "如果付款成功后 Pro 仍未开通,请发邮件到 yhrsc30@gmail.com。当前项目由我一人维护,极少数边缘情况可能需要人工补开。给你带来的不便,敬请谅解!", @@ -748,9 +736,6 @@ export function AccountCenter() { ? "Open Bot (@WeatherQuant_bot)" : "打开机器人 (@WeatherQuant_bot)", telegramGroupLink: isEn ? "Join Telegram Group" : "加入 Telegram 群组", - telegramMarketChannelLink: isEn - ? "Join Market Monitor Channel" - : "加入市场监控频道", copyCommand: isEn ? "Copy command" : "复制命令", paymentMgmt: isEn ? "Payment Management" : "支付管理", paymentToken: isEn ? "Payment Token" : "支付币种", @@ -2959,8 +2944,8 @@ export function AccountCenter() { )} - {/* Telegram Bot Section */} - {showSecondarySections ? ( + {/* Telegram Bot Section — paid users only */} + {showSecondarySections && isSubscribed ? (
- {copy.telegramUpgradeBody} -
-- {copy.telegramUpgradeFeatures} -
-- 🇯🇵 Tokyo · 🇰🇷 Seoul · 🇰🇷 Busan · 🇨🇳 Beijing · 🇨🇳 Shanghai · 🇨🇳 Guangzhou · 🇨🇳 Chengdu · 🇨🇳 Wuhan · 🇭🇰 Hong Kong · 🇹🇼 Taipei · 🇸🇬 Singapore · 🇹🇷 Istanbul · 🇫🇮 Helsinki · 🇳🇱 Amsterdam · 🇫🇷 Paris · 🇺🇸 New York · 🇺🇸 Los Angeles · 🇺🇸 Chicago -
- - {copy.telegramUpgradeJoin} -