diff --git a/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua b/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua index 0952e3ad93..fdf6bb78cb 100644 --- a/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua @@ -347,7 +347,7 @@ function HomeLand:InitDetailBar() local data = HomeLandManager.BuildData[i] if data.dataMain.Type == 1 and data.startTime > 0 then --进度条部分 - if data.dataSingle.Gain[1] ~= 14 then + if data.dataSingle.Gain[1] ~= 14 and data.dataSingle.Storage[2][2]~=0 then local go = self.preList1[i] if not go then go = newObjToParent(self.progressPre,self.progress.transform) @@ -460,7 +460,7 @@ function HomeLand:SetBuildsState() end Util.AddOnceClick(curObj.CanGet,function () - if data.dataSingle.Storage[2][1] ~= 14 and data.dataSingle.Storage[2][2] <= BagManager.GetTotalItemNum(data.dataSingle.Storage[2][1]) then + if data.dataSingle.Storage[2][1] ~= 14 and data.dataSingle.Storage[2][2]~=0 and data.dataSingle.Storage[2][2] <= BagManager.GetTotalItemNum(data.dataSingle.Storage[2][1]) then PopupTipPanel.ShowTip("当前资源已达库存上限,提升建筑等级可增加库存上限!") return end