tcx_xiyou_yueNan
parent
67bc362bb7
commit
a73a4a2d47
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue