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()