Merge branch 'main' of 47.107.44.202:xionglijia/18xchat

This commit is contained in:
2025-10-14 11:34:13 +08:00
2 changed files with 16 additions and 1 deletions
@@ -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()
);
}
//测试用