支付协议修改
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user