调试接口

This commit is contained in:
wangxiaowei
2025-12-23 03:30:22 +08:00
parent 90e9448b68
commit 3af440cd21
17 changed files with 149 additions and 82 deletions

View File

@ -248,20 +248,27 @@
if (isGroupBuying.value) {
// 购买团购套餐
ordeType = PayOrderType.BuyCombo
} else if (renew.value) {
// 续订包间
ordeType = PayOrderType.RenewRoom
}
console.log("🚀 ~ PayValueMap[pay.value]:", PayValueMap[pay.value])
const res = await prePay({
from: PayValueMap[pay.value],
order_id: orderId.value,
pay_way: pay.value,
order_source: PayOrderSource.MINI, //订单来源1-小程序; 2-h5; 3app
order_type: ordeType // 0为茶艺师 1为茶室包间 2为茶室套餐
order_type: ordeType, // 0为茶艺师 1为茶室包间 2为茶室套餐
store_id: storeId.value || 0
})
// 余额支付(平台余额、门店余额)
if (pay.value == PayValue.PlatformBalance || pay.value == PayValue.StoreBalance) {
await balancePay({
id: res.pay
id: res.pay,
store_id: storeId.value || 0,
pay_way: pay.value,
})
uni.hideLoading()