【乾坤商店】修复消耗品显示白片的问题
parent
417dcbf116
commit
17d453dd51
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue