修复:点击web3的充值档位多打开了一个空白网页
This commit is contained in:
@@ -178,6 +178,20 @@ export class PurchasePanel extends li_BaseView {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取支付方式
|
||||
getPaymentMethod(): PaymentMethod {
|
||||
if (this.currentPayType === proto.cs.EnmPayType.EPT_Cash_INR) {
|
||||
// 现金支付
|
||||
return PaymentMethod.CashPay;
|
||||
} else if (this.currentPayType === proto.cs.EnmPayType.EPT_WEB3_USD) {
|
||||
// Web3支付
|
||||
return PaymentMethod.Web3;
|
||||
} else {
|
||||
// Web3支付
|
||||
return PaymentMethod.Web3;
|
||||
}
|
||||
}
|
||||
|
||||
purchaseGood(id: number, networkType: proto.cs.EnmNetworkType) {
|
||||
const shopData = DataManager.I.getDataById<ShopData>(DataId.Shop);
|
||||
const isRechargeId = shopData.isRechargeId(id);
|
||||
@@ -187,7 +201,7 @@ export class PurchasePanel extends li_BaseView {
|
||||
id,
|
||||
this.currentPayType,
|
||||
networkType,
|
||||
PaymentMethod.CashPay
|
||||
this.getPaymentMethod()
|
||||
);
|
||||
}
|
||||
//测试用
|
||||
|
||||
Reference in New Issue
Block a user