ci
This commit is contained in:
parent
184305e6a0
commit
01eb9a425a
@ -402,7 +402,9 @@ async function onPaymentConfirm(paymentData) {
|
||||
throw new Error('创建订单失败:未返回订单号')
|
||||
}
|
||||
|
||||
// 第二步:使用订单号调用微信支付预下单接口
|
||||
// 第二步:判断是否需要支付
|
||||
if (joinResult.actual_amount > 0 && joinResult.status !== 2) {
|
||||
// 使用订单号调用微信支付预下单接口
|
||||
uni.showLoading({ title: '拉起支付...' })
|
||||
|
||||
// 获取 openid
|
||||
@ -438,6 +440,9 @@ async function onPaymentConfirm(paymentData) {
|
||||
})
|
||||
console.log('[Yifanshang] Payment result:', payResult)
|
||||
// #endif
|
||||
} else {
|
||||
console.log('[Yifanshang] Order is free or paid, skipping payment flow. Amount:', joinResult.actual_amount, 'Status:', joinResult.status)
|
||||
}
|
||||
|
||||
// 第四步:支付成功后,查询抽奖结果
|
||||
uni.showLoading({ title: '查询结果中...' })
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const BASE_URL = 'https://mini-chat.1024tool.vip'
|
||||
const BASE_URL = 'https://kdy.1024tool.vip'
|
||||
|
||||
let authModalShown = false
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user