免费礼包修改
parent
29d509d54a
commit
a9389ec427
|
|
@ -15,7 +15,10 @@ function this.Initialize()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 获取相应的金额
|
-- 获取相应的金额
|
||||||
function this.GetMoney(rmbp)
|
function this.GetMoney(rmbp)
|
||||||
|
if rmbp <= 0 then
|
||||||
|
return rmbp
|
||||||
|
end
|
||||||
if not this.RMB2O[rmbp] then
|
if not this.RMB2O[rmbp] then
|
||||||
LogError("表 ExchangeRate 错误: 不包含档位:"..tostring(rmbp))
|
LogError("表 ExchangeRate 错误: 不包含档位:"..tostring(rmbp))
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ function WeekMonthGiftPackPage:RefreshGiftData()
|
||||||
--#OperatingManager.GetGiftGoodsInfoList(GoodsTypeDef.DirectPurchaseGift == 27
|
--#OperatingManager.GetGiftGoodsInfoList(GoodsTypeDef.DirectPurchaseGift == 27
|
||||||
table.sort(shopData,function(a,b)
|
table.sort(shopData,function(a,b)
|
||||||
if a.sortId == b.sortId then
|
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
|
else
|
||||||
return a.sortId > b.sortId
|
return a.sortId > b.sortId
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,8 @@ function this.Pay(id, func)
|
||||||
this.EventTrigger[id] = func
|
this.EventTrigger[id] = func
|
||||||
LogError("发起购买商品的请求,商品id = "..id)
|
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 })
|
PayManager.SdkPay({ Id = id })
|
||||||
else
|
else
|
||||||
NetManager.RequestBuyGiftGoods(id, function(msg)
|
NetManager.RequestBuyGiftGoods(id, function(msg)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue