From 60093d31622dd1740206d29789fb9c759d5ee42f Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Wed, 20 May 2026 11:12:29 +0800 Subject: [PATCH] =?UTF-8?q?@=20=E7=BB=9F=E4=B8=80=E6=9C=88=E4=BB=98?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E4=B8=BA=2010=20USDC=20=E5=B9=B6=E6=B8=85?= =?UTF-8?q?=E7=90=86=E6=89=80=E6=9C=89=20trial=20=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 默认月付 fallback 从 5U 改为 10U(contract_checkout.py、AccountCenter.tsx) - 移除 LoginClient / HeaderBar / AccountCenter / UnlockProOverlay 中的试用推广文案 - VPS 同步: PLAN_CATALOG_JSON、GROUP_MEMBER_PRICE_USDC 更新为 10 - SIGNUP_TRIAL_ENABLED=false 保持关闭 @ --- frontend/components/account/AccountCenter.tsx | 37 +++++-------------- frontend/components/auth/LoginClient.tsx | 6 --- frontend/components/dashboard/HeaderBar.tsx | 23 +++--------- .../subscription/UnlockProOverlay.tsx | 5 --- src/payments/contract_checkout.py | 12 ++++-- 5 files changed, 24 insertions(+), 59 deletions(-) diff --git a/frontend/components/account/AccountCenter.tsx b/frontend/components/account/AccountCenter.tsx index 7d0f345b..806ebc4f 100644 --- a/frontend/components/account/AccountCenter.tsx +++ b/frontend/components/account/AccountCenter.tsx @@ -819,14 +819,6 @@ export function AccountCenter() { freeTier: "FREE TIER", proPendingSync: isEn ? "Activated (pending sync)" : "已开通(待同步)", noProSubscription: isEn ? "No Pro subscription" : "暂无 Pro 订阅", - trialEndsSoonTitle: isEn ? "Trial ending soon" : "试用即将结束", - trialEndsSoonBody: isEn - ? "Your 3-day trial is almost over. Upgrade to Pro to keep full intraday analysis and decision cards." - : "你的 3 天试用即将结束。升级 Pro 后可继续使用完整日内分析和城市决策卡。", - trialExpiredTitle: isEn ? "Trial ended" : "试用已结束", - trialExpiredBody: isEn - ? "Your trial access has ended. Renew with Pro to restore full access." - : "试用权限已结束。开通 Pro 后可恢复完整权限。", proEndsSoonTitle: isEn ? "Pro renewal due soon" : "Pro 即将到期", proEndsSoonBody: isEn ? "Your Pro membership will expire soon. Renew now to avoid interruption." @@ -836,7 +828,6 @@ export function AccountCenter() { ? "Your Pro membership has expired. Renew now to restore premium access." : "你的 Pro 会员已到期。立即续费可恢复高级权限。", renewNow: isEn ? "Renew Now" : "立即续费", - trialBadge: isEn ? "TRIAL" : "试用中", daysLeft: isEn ? "{days} days left" : "剩余 {days} 天", queuedExtensionSummary: isEn ? "Current plan until {current}. Queued extension: +{days} days. Total access until {total}." @@ -1513,7 +1504,7 @@ export function AccountCenter() { telegram_pricing?: TelegramPricing | null; }; if (data.telegram_pricing?.is_group_member) { - const amount = data.telegram_pricing.amount_usdc || "5"; + const amount = data.telegram_pricing.amount_usdc || "10"; setPaymentInfo(`Telegram 群成员验证成功,当前会员价 ${amount}U。`); } await loadSnapshot(); @@ -1576,25 +1567,17 @@ export function AccountCenter() { const paymentFeatureReady = paymentReadyForRecovery; const canOpenCheckoutOverlay = Boolean( paymentFeatureReady && - (!isSubscribed || isTrialPlan || showExpiringSoon || showExpiredReminder), + (!isSubscribed || showExpiringSoon || showExpiredReminder), ); const subscriptionStatusTitle = showExpiredReminder - ? isTrialPlan - ? copy.trialExpiredTitle - : copy.proExpiredTitle + ? copy.proExpiredTitle : showExpiringSoon - ? isTrialPlan - ? copy.trialEndsSoonTitle - : copy.proEndsSoonTitle + ? copy.proEndsSoonTitle : ""; const subscriptionStatusBody = showExpiredReminder - ? isTrialPlan - ? copy.trialExpiredBody - : copy.proExpiredBody + ? copy.proExpiredBody : showExpiringSoon - ? isTrialPlan - ? copy.trialEndsSoonBody - : copy.proEndsSoonBody + ? copy.proEndsSoonBody : ""; const subscriptionStatusMeta = expiryInfo && (showExpiringSoon || showExpiredReminder) @@ -1738,7 +1721,7 @@ export function AccountCenter() { const billing = useMemo(() => { const parsedPlanAmount = Number( - backend?.telegram_pricing?.amount_usdc ?? selectedPlan?.amount_usdc ?? 5, + backend?.telegram_pricing?.amount_usdc ?? selectedPlan?.amount_usdc ?? 10, ); const planAmount = Number.isFinite(parsedPlanAmount) && parsedPlanAmount > 0 @@ -2778,9 +2761,7 @@ export function AccountCenter() { className={`px-2 py-0.5 rounded-full text-[10px] font-black uppercase tracking-tighter border ${isSubscribed ? "bg-blue-500/20 border-blue-500/40 text-blue-400" : "bg-slate-700/50 border-white/10 text-slate-500"}`} > {isSubscribed - ? isTrialPlan - ? copy.trialBadge - : copy.proMember + ? copy.proMember : copy.freeTier} @@ -2861,7 +2842,7 @@ export function AccountCenter() { Top 2-3 - +100 积分 & 3天Pro + +100 积分
diff --git a/frontend/components/auth/LoginClient.tsx b/frontend/components/auth/LoginClient.tsx index 60c3fb78..1e97d26c 100644 --- a/frontend/components/auth/LoginClient.tsx +++ b/frontend/components/auth/LoginClient.tsx @@ -72,9 +72,6 @@ export function LoginClient({ nextPath }: LoginClientProps) { signupCheckEmail: isEn ? "Sign-up successful. Please verify your email before signing in." : "注册成功,请检查邮箱并完成验证后登录。", - trialPromo: isEn - ? "New users unlock a free 3-day Pro trial after sign-up." - : "新用户注册后可免费体验 3 天 Pro。", reset: isEn ? "Forgot password?" : "忘记密码?", resetSent: isEn ? "Reset link sent. Check your inbox." @@ -231,9 +228,6 @@ export function LoginClient({ nextPath }: LoginClientProps) {

PolyWeather

{copy.subtitle}

-
- {copy.trialPromo} -