账户页 Telegram 区块仅付费用户可见,移除过期的频道升级通知和市场监控链接

This commit is contained in:
2569718930@qq.com
2026-05-18 18:44:20 +08:00
parent 1c4287380e
commit ad16ae6b3b
+2 -55
View File
@@ -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() {
)}
</div>
{/* Telegram Bot Section */}
{showSecondarySections ? (
{/* Telegram Bot Section — paid users only */}
{showSecondarySections && isSubscribed ? (
<div className="lg:col-span-12 grid grid-cols-1 md:flex gap-6">
<section className="flex-1 bg-white/5 border border-white/10 rounded-[2rem] p-8 relative overflow-hidden group">
<Bot
@@ -2990,33 +2975,6 @@ export function AccountCenter() {
</div>
) : null}
{/* Channel Upgrade / Migration Notice — Pro users only */}
{isSubscribed ? (
<div className="mb-6 rounded-2xl border border-cyan-400/30 bg-gradient-to-br from-cyan-500/12 to-blue-500/8 px-5 py-4">
<h4 className="text-sm font-bold text-cyan-300 mb-2 flex items-center gap-1.5">
<Sparkles size={15} /> {copy.telegramUpgradeTitle}
</h4>
<p className="text-slate-300 text-xs leading-relaxed mb-3">
{copy.telegramUpgradeBody}
</p>
<p className="text-slate-400 text-[11px] font-semibold mb-1.5">
{copy.telegramUpgradeFeatures}
</p>
<p className="text-slate-300 text-xs leading-relaxed mb-3">
🇯🇵 Tokyo · 🇰🇷 Seoul · 🇰🇷 Busan · 🇨🇳 Beijing · 🇨🇳 Shanghai · 🇨🇳 Guangzhou · 🇨🇳 Chengdu · 🇨🇳 Wuhan · 🇭🇰 Hong Kong · 🇹🇼 Taipei · 🇸🇬 Singapore · 🇹🇷 Istanbul · 🇫🇮 Helsinki · 🇳🇱 Amsterdam · 🇫🇷 Paris · 🇺🇸 New York · 🇺🇸 Los Angeles · 🇺🇸 Chicago
</p>
<Link
href={TELEGRAM_TOPICS_GROUP_URL}
target="_blank"
rel="noreferrer"
className="inline-flex min-h-9 items-center gap-1.5 rounded-lg border border-cyan-400/40 bg-cyan-500/15 px-4 py-2 text-xs font-bold text-cyan-200 hover:bg-cyan-500/25 transition-colors"
>
{copy.telegramUpgradeJoin}
<ExternalLink size={12} />
</Link>
</div>
) : null}
<div className="mb-4 flex flex-wrap gap-2">
{TELEGRAM_BOT_URL ? (
<Link
@@ -3029,17 +2987,6 @@ export function AccountCenter() {
<ExternalLink size={12} />
</Link>
) : null}
{TELEGRAM_MARKET_CHANNEL_URL ? (
<Link
href={TELEGRAM_MARKET_CHANNEL_URL}
target="_blank"
rel="noreferrer"
className="inline-flex min-h-9 items-center gap-1 rounded-lg border border-emerald-400/30 bg-emerald-500/10 px-3 py-2 text-xs font-semibold text-emerald-200 hover:bg-emerald-500/20"
>
{copy.telegramMarketChannelLink}
<ExternalLink size={12} />
</Link>
) : null}
{TELEGRAM_GROUP_URL ? (
<Link
href={TELEGRAM_GROUP_URL}