Merge branch 'tcx_xiyou_yueNan' of http://192.168.1.21:3000/root/miduo_client into tcx_xiyou_yueNan

xiyou_sanguo
PC-202302260912\Administrator 2025-04-09 11:59:00 +08:00
commit d47014c150
1 changed files with 7 additions and 5 deletions

View File

@ -65,17 +65,19 @@ function this.Pay(id, func)
CheckRedPointStatus(RedPointType.GrowthPackage) --成长礼包的红点检测
--直购商品
local rechargeConfig = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, id)
SubmitExtraData({
type = SDKSubMitType.TYPE_CLICKRECHARGEPACKAGE,
roleCreateTime = "" .. id,
roleLevelUpTime = rechargeConfig.RechargeId
})
if rechargeConfig.Price == 0 then
NetManager.MoneyBuyGiftRequest(id)
return
end
--现金点券购买
local xjdqNum = BagManager.GetItemCountById(131)
if xjdqNum < rechargeConfig.Price and rechargeConfig.Price > 0 and rechargeConfig.OtherBuy1 and #rechargeConfig.OtherBuy1 > 0 and rechargeConfig.OtherBuy1[1][1] == 131 then
SubmitExtraData({
type = SDKSubMitType.TYPE_CLICKRECHARGEPACKAGE,
roleCreateTime = "" .. id,
roleLevelUpTime = rechargeConfig.RechargeId
})
end
if xjdqNum >= rechargeConfig.Price and rechargeConfig.Price > 0 and rechargeConfig.OtherBuy1 and #rechargeConfig.OtherBuy1 > 0 and rechargeConfig.OtherBuy1[1][1] == 131 then
local sureFunc = function()
NetManager.MoneyBuyGiftRequest(id)