免费礼包修改

jiaoyangna 2020-09-22 18:38:22 +08:00
parent 29d509d54a
commit a9389ec427
3 changed files with 7 additions and 3 deletions

View File

@ -15,7 +15,10 @@ function this.Initialize()
end
-- 获取相应的金额
function this.GetMoney(rmbp)
function this.GetMoney(rmbp)
if rmbp <= 0 then
return rmbp
end
if not this.RMB2O[rmbp] then
LogError("表 ExchangeRate 错误: 不包含档位:"..tostring(rmbp))
return 0

View File

@ -80,7 +80,7 @@ function WeekMonthGiftPackPage:RefreshGiftData()
--#OperatingManager.GetGiftGoodsInfoList(GoodsTypeDef.DirectPurchaseGift == 27
table.sort(shopData,function(a,b)
if a.sortId == b.sortId then
return a.data.goodsId < b.data.goodsId
return rechargeCommodityConfig[a.data.goodsId].Price < rechargeCommodityConfig[b.data.goodsId].Price
else
return a.sortId > b.sortId
end

View File

@ -42,7 +42,8 @@ function this.Pay(id, func)
this.EventTrigger[id] = func
LogError("发起购买商品的请求商品id = "..id)
--直购商品
if AppConst.isSDKLogin then
local rechargeConfig = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, id)
if AppConst.isSDKLogin and rechargeConfig.Price > 0 then
PayManager.SdkPay({ Id = id })
else
NetManager.RequestBuyGiftGoods(id, function(msg)