From 3f414f3d83e1e703f7f00248467bb8080e99bfea Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 29 Jul 2020 21:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=AE=E7=BD=97=E7=BC=96=E9=98=9F=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Formation/FormationEditPopup.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua index 50485fdcb9..36260e618c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua @@ -67,6 +67,7 @@ function FormationEditPopup:BindEvent() for i, v in ipairs(choosedList) do table.insert(dids,v.did) end + if #choosedList <= maxNum and #choosedList > 0 then NetManager.TrialHeroInfoSaveRequest(dids,function() PopupTipPanel.ShowTip(Language[10669]) if func~=nil then --保存完毕后 将英雄did合集传递过去 此时我拥有这些英雄 不用担心英雄已被删除 @@ -74,9 +75,12 @@ function FormationEditPopup:BindEvent() end self:ClosePanel() end) + else + PopupTipPanel.ShowTip("编队不能为空") + end end - if #choosedList 0 then MsgPanel.ShowTwo(Language[10670], nil, function() go() end)