From 55072e7094a3188b0d50c9b4c5cc70178dd76608 Mon Sep 17 00:00:00 2001 From: JieLing Date: Sat, 9 Jan 2021 13:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=95=B0?= =?UTF-8?q?=E6=95=B0=E5=88=9B=E5=BB=BA=E8=A7=92=E8=89=B2=E6=97=B6=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E7=99=BB=E5=BD=95=E4=BF=A1=E6=81=AF=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/ActivityGift/ActivityGiftManager.lua | 8 ++++---- .../ManagedResources/~Lua/Modules/Login/LoginManager.lua | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/ActivityGift/ActivityGiftManager.lua b/Assets/ManagedResources/~Lua/Modules/ActivityGift/ActivityGiftManager.lua index dd4b5d325a..ef8a0596c1 100644 --- a/Assets/ManagedResources/~Lua/Modules/ActivityGift/ActivityGiftManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/ActivityGift/ActivityGiftManager.lua @@ -737,10 +737,10 @@ function this.GetExpertActiveisOpen() return ExperType.LuckyCat end -- 七日 - local curActiveData = not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.EightDayGift) - if curActiveData then - return ExperType.SevenDay - end + -- local curActiveData = not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.EightDayGift) + -- if curActiveData then + -- return ExperType.SevenDay + -- end --星级成长礼 if OperatingManager.IsHeroGiftActive() then return ExperType.StarGrowGift diff --git a/Assets/ManagedResources/~Lua/Modules/Login/LoginManager.lua b/Assets/ManagedResources/~Lua/Modules/Login/LoginManager.lua index 56a45697d3..c5b4b53148 100644 --- a/Assets/ManagedResources/~Lua/Modules/Login/LoginManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Login/LoginManager.lua @@ -41,6 +41,10 @@ function this.Initialize() -- 判断是否是注册并登录 if this.isRegister then this.isRegister = false + -- 登出之前的账号 + ThinkingAnalyticsManager.Logout() + ThinkingAnalyticsManager.ClearSuperProperties() + -- 开始 ThinkingAnalyticsManager.SetSuperProperties({ account = AppConst.isSDK and tostring(AppConst.OpenId) or "", Bundle_id = AppConst.isSDK and AppConst.SdkPackageName or "",