From 7aa6dad65dfcdbe43a267648c1cb514af9d3bb8a Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 6 Jun 2023 21:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E7=95=8C=E9=9D=A2=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/login/login_ui.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lua/app/module/login/login_ui.lua b/lua/app/module/login/login_ui.lua index 70c1e556..ff6f25af 100644 --- a/lua/app/module/login/login_ui.lua +++ b/lua/app/module/login/login_ui.lua @@ -49,7 +49,12 @@ function LoginUI:onLoadRootComplete() copyTx:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_COPY_ACOUNT_DESC)) copyTx:setVisible(true) copyTx:addClickListener(function() - GFunc.copyStr(distinctId) + local acountInfo = LocalData:getAccountInfo() + local str = acountInfo and acountInfo.id + if not str or str == "" then + str = distinctId + end + GFunc.copyStr(str) end) ModuleManager.LoginManager:resetServerListStartTime() @@ -62,9 +67,6 @@ function LoginUI:onLoadRootComplete() self:refreshServerList(serverList) ModuleManager.LoginManager:saveAuthArgs(false) ModuleManager.LoginManager:initSocket() - - local info = LocalData:getLastLoginInfo() - BIReport:postAccountLoginClick(info.type) end) ModuleManager.LoginManager:getServerList()