更新了购买套餐里的充值和立即支付的传参,增加我的账单模块待支付链接跳转和弹窗

This commit is contained in:
Eamon-meng
2025-06-18 19:05:38 +08:00
parent 36b17f1bf2
commit ba7d22168d
9 changed files with 662 additions and 136 deletions

View File

@@ -1,13 +1,15 @@
'use server'
import {callByUser, callPublic} from '@/actions/base'
export async function RechargeByAlipay(props: {
export async function RechargeByPay(props: {
amount: string
platform: number
method: number
}) {
return callByUser<{
trade_no: string
pay_url: string
}>('/api/user/recharge/prepare/alipay', props)
}>('/api/user/recharge/prepare', props)
}
export async function RechargeByAlipayConfirm(props: {