From cc883eadff4f0556b547d63246a18f89d50dc1cc Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Mon, 4 Jul 2022 17:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=9D=92=E9=BE=99=E7=A7=98=E5=AE=9D?= =?UTF-8?q?=E3=80=91=3D=3D=3D=3D=3D=3D=3D=3D=E8=B4=AD=E4=B9=B0=E7=A7=98?= =?UTF-8?q?=E5=AE=9D=E7=AD=89=E7=BA=A7=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua index 36360f69b6..8019794e58 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel.lua @@ -80,12 +80,12 @@ function this:Caculate(templv) for j=1,#reward.Reward do local id = reward.Reward[j].item[1] local num = reward.Reward[j].item[2] - if reward.Reward[j].type == 1 then + if reward.Reward[j].type == 1 and id~=0 then if not direct[id] then direct[id] = 0 end direct[id] = direct[id] + num - elseif reward.Reward[j].type == 2 and treasureState then + elseif reward.Reward[j].type == 2 and treasureState and id~=0 then if not direct[id] then direct[id] = 0 end