【乾坤商店】修复消耗品显示白片的问题

dev_chengFeng
gaoxin 2021-05-19 17:51:40 +08:00
parent 417dcbf116
commit 17d453dd51
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ function ShopViewNew:RefreshBase()
-- 刷新物品计算 -- 刷新物品计算
local shopInfo = ShopManager.GetShopInfoByType(self.ShopType) local shopInfo = ShopManager.GetShopInfoByType(self.ShopType)
local costId, abcd = shopInfo.RefreshItem[1][1], shopInfo.RefreshItem[2] local costId, abcd = shopInfo.RefreshItem[1][1], shopInfo.RefreshItem[2]
self.costIcon:GetComponent("Image").sprite = SetIcon(costId) self.costIcon:GetComponent("Image").sprite = SetIcon(self.spLoader, costId)
-- 商店特权正确性检测 -- 商店特权正确性检测
if not shopInfo.RefreshPrivilege or shopInfo.RefreshPrivilege == 0 then if not shopInfo.RefreshPrivilege or shopInfo.RefreshPrivilege == 0 then
Log("错误:商店类型 == " .. self.ShopType .. "商店支持手动刷新但是未配置刷新次数对应的特权id无限制次数也需要配置特权id请检查") Log("错误:商店类型 == " .. self.ShopType .. "商店支持手动刷新但是未配置刷新次数对应的特权id无限制次数也需要配置特权id请检查")
@ -442,7 +442,7 @@ function ShopViewNew:ShopItemAdapter(shopItem, itemData)
end end
-- 消耗物品的信息 -- 消耗物品的信息
itemPrice.text = PrintWanNum2(tonumber(price))--tostring(price) itemPrice.text = PrintWanNum2(tonumber(price))--tostring(price)
costIcon.sprite = SetIcon(costId) costIcon.sprite = SetIcon(self.spLoader, costId)
-- 判断商品栏位是否解锁 -- 判断商品栏位是否解锁
local _IsUnLock = true local _IsUnLock = true