更新支付传参&首页接口&菜单栏导航后tab切换

This commit is contained in:
Eamon-meng
2025-06-25 14:43:44 +08:00
parent 7a34aac581
commit b19b01f82c
8 changed files with 155 additions and 64 deletions

View File

@@ -10,7 +10,6 @@ import {toast} from 'sonner'
import {useRouter} from 'next/navigation'
import {completeResource, createResource, prepareResource} from '@/actions/resource'
import {
TradePlatform,
usePlatformType,
TradeMethod,
TradeMethodDecoration,
@@ -37,18 +36,14 @@ export default function Pay(props: PayProps) {
if (props.method === 'balance') return
const method = platform === TradePlatform.Desktop
? TradeMethod.Sft
: props.method === 'alipay'
? TradeMethod.SftAlipay
: TradeMethod.SftWechat
const method = props.method === 'alipay'
? TradeMethod.SftAlipay
: TradeMethod.SftWechat
const res = {
...props.resource,
payment_method: method,
payment_platform: platform,
}
console.log(res, '请求参数')
const resp = await prepareResource(res)
if (!resp.success) {