From 691c4f6eb1d5cb815f955312af339e463157ac0f Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Thu, 20 Nov 2025 08:09:34 +0800 Subject: [PATCH] update pay function --- src/components/Subscription/SubscriptionContentNew.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Subscription/SubscriptionContentNew.tsx b/src/components/Subscription/SubscriptionContentNew.tsx index 8dd5990d..37d9cde2 100644 --- a/src/components/Subscription/SubscriptionContentNew.tsx +++ b/src/components/Subscription/SubscriptionContentNew.tsx @@ -668,8 +668,8 @@ export default function SubscriptionContentNew() { - {user.end_date - ? new Date(user.end_date).toLocaleDateString('zh-CN', { + {user.subscription_end_date + ? new Date(user.subscription_end_date).toLocaleDateString('zh-CN', { year: 'numeric', month: 'long', day: 'numeric' @@ -679,8 +679,8 @@ export default function SubscriptionContentNew() { - {user.end_date && (() => { - const endDate = new Date(user.end_date); + {user.subscription_end_date && (() => { + const endDate = new Date(user.subscription_end_date); const today = new Date(); const daysLeft = Math.ceil((endDate.getTime() - today.getTime()) / (1000 * 60 * 60 * 24));