更新充值和购买支付宝接口和传参,我的账单列表更新&解决banner拉伸&更新登录的访问令牌
This commit is contained in:
@@ -63,9 +63,9 @@ export default function RechargeModal(props: RechargeModelProps) {
|
||||
? TradeMethod.SftAlipay
|
||||
: TradeMethod.SftWechat
|
||||
const req = {
|
||||
amount: data.amount.toString(),
|
||||
platform: platform,
|
||||
method: method,
|
||||
amount: Number(data.amount) * 100,
|
||||
}
|
||||
|
||||
const result = await RechargePrepare(req)
|
||||
@@ -94,7 +94,10 @@ export default function RechargeModal(props: RechargeModelProps) {
|
||||
const handlePaymentSuccess = async () => {
|
||||
if (!trade) return
|
||||
try {
|
||||
const resp = await RechargeComplete({trade_no: trade.inner_no})
|
||||
const resp = await RechargeComplete({
|
||||
trade_no: trade.inner_no,
|
||||
method: trade.method,
|
||||
})
|
||||
if (!resp.success) {
|
||||
throw new Error(resp.message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user