Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
vip模式
daoyian59289f5f6006
diff --git a/src/app/[lng]/vip/page.tsx b/src/app/[lng]/vip/page.tsxindex 6957cd05..0da4146e 100644--- a/src/app/[lng]/vip/page.tsx+++ b/src/app/[lng]/vip/page.tsx@@ -39,24 +39,29 @@ export default function VipPage() {// 根据选择的计划映射到支付类型let paymentType;+ let paymentMethod;switch (selectedPlan) {case 'onceMonth':paymentType = PaymentType.ONCE_MONTH;+ paymentMethod = 'payment';break;case 'month':paymentType = PaymentType.MONTH;+ paymentMethod = 'subscription';break;case 'year':paymentType = PaymentType.YEAR;+ paymentMethod = 'subscription';break;default:paymentType = PaymentType.ONCE_MONTH;+ paymentMethod = 'payment';}// 创建支付订单const response: any = await createPaymentOrderApi({success_url: "http://localhost:3000/zh-CN/profile",- mode: "payment",+ mode: paymentMethod,payment: paymentType,metadata: {userId: userInfo.id