更新支付传参&首页接口&菜单栏导航后tab切换
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user