支付协议修改

This commit is contained in:
chen wei bo
2025-09-18 16:19:45 +08:00
parent 3fd19e82d5
commit c0fc7c838a
3 changed files with 298 additions and 3 deletions
@@ -128,7 +128,7 @@ export class PurchasePanel extends li_BaseView {
const isRechargeId = shopData.isRechargeId(id);
if (isRechargeId) {
// 需要外部支付进行购买
this.startPayment(id);
this.startPayment(id, proto.cs.EnmPayType.EPT_Cash_INR, 0);
} else {
//是u币充值,打开页面
NavigationManager.Instance.openSubPanel("Web3PopPanel", this.node);
@@ -187,10 +187,12 @@ export class PurchasePanel extends li_BaseView {
}
// 创建订单
async startPayment(goodId: number) {
async startPayment(goodId: number, payType: number, network: number) {
// 请求数据
const reqData = {
goodId,
payType,
network,
};
let res = await PaymentService.I.startPayment(reqData);
console.log("支付完成的响应数据:", res);