From f465fdafe2f18c1f9f2d0d60f9501d30ceb2fa9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=B6=E7=82=9C?= <2029049582@qq.com> Date: Wed, 1 Oct 2025 21:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=94=A8=E6=88=B7=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base_project/Game/Controller/LoginController.lua | 2 -- .../base_project/Game/View/Lobby/SelectAcc.lua | 12 ++++++++++-- lua_probject/base_project/Game/View/LobbyView.lua | 1 - 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lua_probject/base_project/Game/Controller/LoginController.lua b/lua_probject/base_project/Game/Controller/LoginController.lua index c9e61796..fef34d6b 100644 --- a/lua_probject/base_project/Game/Controller/LoginController.lua +++ b/lua_probject/base_project/Game/Controller/LoginController.lua @@ -167,9 +167,7 @@ function M:Login(callback) local result = pcall(function(...) _data.data = RSAHelper.Encrypt(json.encode({ acc = user.acc, - -- acc = "hjksa456asfas2sadg454dsdas354djbrdsdqadasd7fadij97845bd56r4", nick = user.nick_name, - -- nick = "test1", sex = user.sex, portrait = user.head_url, deviceCode = UnityEngine.SystemInfo.deviceUniqueIdentifier diff --git a/lua_probject/base_project/Game/View/Lobby/SelectAcc.lua b/lua_probject/base_project/Game/View/Lobby/SelectAcc.lua index 637c768d..d02c70c2 100644 --- a/lua_probject/base_project/Game/View/Lobby/SelectAcc.lua +++ b/lua_probject/base_project/Game/View/Lobby/SelectAcc.lua @@ -62,8 +62,16 @@ function M:initInfo() ViewUtil.ErrorTip(res.ReturnCode) return end - self._resData = res.Data.accounts - self._list_acc.numItems = #self._resData + self._resData = {} + for i = 1, #res.Data.accounts do + if res.Data.accounts[i].id ~= DataManager.SelfUser.account_id then + table.insert(self._resData, res.Data.accounts[i]) + end + end + if #self._resData > 0 then + self._list_acc.numItems = #self._resData + self:Show() + end end) end diff --git a/lua_probject/base_project/Game/View/LobbyView.lua b/lua_probject/base_project/Game/View/LobbyView.lua index 05bce181..3fae5130 100644 --- a/lua_probject/base_project/Game/View/LobbyView.lua +++ b/lua_probject/base_project/Game/View/LobbyView.lua @@ -429,7 +429,6 @@ function M:Show() local selectAcc = SelectAcc.new({}, function() self._close_destroy = true end) - selectAcc:Show() end end