From e99b368abb1fc42951a26d002ca9b94735c0ca78 Mon Sep 17 00:00:00 2001 From: JLIOSM1 <774727341@qq.com> Date: Sun, 11 Apr 2021 04:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90adjust=E3=80=91=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=89=93=E7=82=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Player/PlayerManager.lua | 4 +++- .../ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua index 8904c0f5d7..1266eb42ef 100644 --- a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua @@ -191,7 +191,9 @@ function this.BcakUpdateUserExp(_msg) -- 打点数据 TapDBManager.SetLevel(this.level) --发送埋点数据 - CustomEventManager.SendCustomEvents(FBSDKCustomEventType.RoleLv,this.level) + for l = oldLevel+1, this.level do + CustomEventManager.SendCustomEvents(FBSDKCustomEventType.RoleLv,l) + end CheckRedPointStatus(RedPointType.OrdinaryExplore) CheckRedPointStatus(RedPointType.HeroExplore) CheckRedPointStatus(RedPointType.LegendExplore) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua index 0963d18346..6e4213cb6d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua @@ -151,8 +151,6 @@ function CreateNamePopup:BindEvent() PopupTipPanel.ShowTip(Language[10837]) this:ClosePanel() end - -- 发送创建角色事件 - CustomEventManager.SendCustomEvents(FBSDKCustomEventType.CreateCharacter) end -- 类型3 为修改名称 类型1 为创建角色 @@ -183,6 +181,9 @@ function CreateNamePopup:BindEvent() if this.options then self:ClosePanel() StoryManager.StoryJumpType(this.options[1], self) + -- 发送创建角色事件 + CustomEventManager.SendCustomEvents(FBSDKCustomEventType.CreateCharacter) + CustomEventManager.SendCustomEvents(FBSDKCustomEventType.RoleLv,1) end end