From 57dc62ef4d94a58c1e2476a912f7129ddcc7000d Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 25 Apr 2023 14:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 12 ------------ lua/app/module/login/test_login_ui.lua | 19 ++----------------- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 1b5c1072..43503241 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -80,7 +80,6 @@ BIReport.BATTLE_PASS_OPT_TYPE = { } BIReport.ACCOUNT_OPT_TYPE = { - LOGIN_CLICK = "LoginClick", LOGIN_FINISH = "LoginFinish", LOGIN_FAILED = "LoginFailed", BIND_CLICK = "BindClick", @@ -1052,17 +1051,6 @@ function BIReport:postBattlePassExpGet(getExp, lv, exp) BIReport:printArgsStr(EVENT_NAME_BATTLE_PASS_OPT, args) end --- 登录 --- 点击登录 -function BIReport:postAccountLoginClick(loginType) - local args = { - login_type = loginType, - event_type = BIReport.ACCOUNT_OPT_TYPE.LOGIN_CLICK, - } - self:report(EVENT_NAME_ACCOUNT_OPT, args) - BIReport:printArgsStr(EVENT_NAME_ACCOUNT_OPT, args) -end - -- 登录成功 function BIReport:postAccountLoginFinish(loginType) local args = { diff --git a/lua/app/module/login/test_login_ui.lua b/lua/app/module/login/test_login_ui.lua index 7abd3bd8..8270dab6 100644 --- a/lua/app/module/login/test_login_ui.lua +++ b/lua/app/module/login/test_login_ui.lua @@ -51,35 +51,20 @@ function TestLoginUI:onLoadRootComplete() end end) - -- self:addEventListener(EventManager.CUSTOM_EVENT.LOGIN_REQ_SUCCESS, function() - -- self:preloadAndEnterMaincity() - -- end) - local accountId = LocalData:getAccountInfo().id or GConst.EMPTY_STRING local copyTx = uiMap["test_login_ui.copy_account_tx"] copyTx:setVisible(accountId ~= GConst.EMPTY_STRING) copyTx:addClickListener(function() GFunc.copyStr(accountId) end) - - -- ModuleManager.LoginManager:addServerListCallback(function(serverList) - -- self:refreshServerList(serverList) - -- end) end function TestLoginUI:loginGame() - local uiMap = self.root:genAllChildren() - local name = uiMap["test_login_ui.login_node.input_field"]:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_INPUT_FIELD).text - if name == "" then - name = nil - end - -- ModuleManager.LoginManager:saveAuthArgs(name) - -- ModuleManager.LoginManager:initSocket() - ModuleManager.LoginManager:loginGame() - -- first 可以卸载了, 此项目只会启动时检查一次热更,之后不会再次检查 CS.BF.BFMain.Instance.LuaMgr:OnGameInitSucc() LocalData:save() + + self:preloadAndEnterMaincity() end function TestLoginUI:preloadAndEnterMaincity()