From 23f9c2905d6b120b0931c007a12bd48125e44f77 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 22 Feb 2021 21:17:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=82=AE=E4=BB=B6=E3=80=91=E8=83=8C?= =?UTF-8?q?=E5=8C=85=E5=B7=B2=E6=BB=A1=E6=97=B6=E9=A2=86=E5=8F=96=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E9=A2=86=E5=8F=96=E6=8C=89=E9=92=AE=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=8F=98=E4=B8=BA=E4=BA=86=E5=88=A0=E9=99=A4=EF=BC=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=82=AE=E4=BB=B6=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=8F=98=E4=B8=BA=E5=B7=B2=E9=A2=86=E5=8F=96?= =?UTF-8?q?=EF=BC=88=E4=BF=AE=E5=A4=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Mail/MainSingleInfoPanel.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Mail/MainSingleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/Mail/MainSingleInfoPanel.lua index f07c0574f1..24ad34b659 100644 --- a/Assets/ManagedResources/~Lua/Modules/Mail/MainSingleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Mail/MainSingleInfoPanel.lua @@ -38,9 +38,11 @@ function MainSingleInfoPanel:BindEvent() table.insert(allGetMail,mailData.mailId) IndicationManager.getRewardFromMail=true NetManager.GetSingleMailRewardData(allGetMail,function (_drop) - UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1,function() - end) - self:CallBackEvent() + UIManager.OpenPanel(UIName.RewardItemPopup,_drop,1) + --如果不能领取,不改变按钮状态 + if #_drop.itemlist > 0 or #_drop.equipId > 0 or #_drop.Hero > 0 or #_drop.soulEquip > 0 or #_drop.pokemon > 0 then + self:CallBackEvent() + end end) end)