From dd667ae26a828c0a9aee088c2da7cafbb818abf3 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Wed, 21 Apr 2021 19:28:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90ios=E3=80=91sdk=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E4=B9=8B=E5=89=8D=E4=B8=8D=E5=86=8D=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E7=99=BB=E5=BD=95=E6=8C=89=E9=92=AE=EF=BC=8C=E9=80=8D?= =?UTF-8?q?=E9=81=A5=E6=B8=B8=E6=8C=89=E9=92=AE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua | 8 +++----- .../~Lua/Modules/XiaoYao/XiaoyaoHeroGetPopup.lua | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua b/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua index 99f834d27f..ad90bb9373 100644 --- a/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua @@ -120,7 +120,6 @@ function this:BindEvent() --SDK 登录 Util.AddClick(this.sdkLoginBtn, function() - this.sdkLoginBtn:SetActive(false) this.SDKLogin() end) @@ -128,7 +127,6 @@ end -- sdk 初始化完成回调 function this.OnInitSuccess() - this.sdkLoginBtn:SetActive(false) this.SDKLogin() end @@ -153,7 +151,7 @@ end function this:OnLogout() if IsSDKLogin then this.SetLoginPart(false) - this.sdkLoginBtn:SetActive(false) + this.sdkLoginBtn:SetActive(true) this.inputField.gameObject:SetActive(false) this.UserBtn:SetActive(false) this.btnUser:SetActive(false) @@ -161,7 +159,6 @@ function this:OnLogout() this.SDKLogin() else this.sdkLoginBtn:SetActive(false) - local userId = PlayerPrefs.GetString(openIdkey, defaultOpenIdkey) if IsDevelopLogin then this.UserBtn:SetActive(false) @@ -196,7 +193,7 @@ function this:OnOpen(...) if IsSDKLogin then this.SetLoginPart(false) - this.sdkLoginBtn:SetActive(false) + this.sdkLoginBtn:SetActive(true) this.inputField.gameObject:SetActive(false) this.UserBtn:SetActive(false) this.btnUser:SetActive(false) @@ -280,6 +277,7 @@ function this.RefreshLoginStatus(result) if result == SDK_RESULT.SUCCESS then RequestPanel.Show(Language[11139]) this.SetLoginPart(true) + this.sdkLoginBtn:SetActive(false) -- 获取服务器列表 this.RequestServerList(AppConst.OpenId, this.OnReceiveServerList) else diff --git a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoyaoHeroGetPopup.lua b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoyaoHeroGetPopup.lua index 62265ad8c7..bb1b7df615 100644 --- a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoyaoHeroGetPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoyaoHeroGetPopup.lua @@ -317,5 +317,4 @@ function XiaoyaoHeroGetPopup:OnDestroy() pointPrefabs = {} end -return XiaoyaoHeroGetPopup return XiaoyaoHeroGetPopup \ No newline at end of file