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