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