登陆界面复制账号
This commit is contained in:
parent
1c89ec147b
commit
7aa6dad65d
@ -49,7 +49,12 @@ function LoginUI:onLoadRootComplete()
|
|||||||
copyTx:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_COPY_ACOUNT_DESC))
|
copyTx:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_COPY_ACOUNT_DESC))
|
||||||
copyTx:setVisible(true)
|
copyTx:setVisible(true)
|
||||||
copyTx:addClickListener(function()
|
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)
|
end)
|
||||||
|
|
||||||
ModuleManager.LoginManager:resetServerListStartTime()
|
ModuleManager.LoginManager:resetServerListStartTime()
|
||||||
@ -62,9 +67,6 @@ function LoginUI:onLoadRootComplete()
|
|||||||
self:refreshServerList(serverList)
|
self:refreshServerList(serverList)
|
||||||
ModuleManager.LoginManager:saveAuthArgs(false)
|
ModuleManager.LoginManager:saveAuthArgs(false)
|
||||||
ModuleManager.LoginManager:initSocket()
|
ModuleManager.LoginManager:initSocket()
|
||||||
|
|
||||||
local info = LocalData:getLastLoginInfo()
|
|
||||||
BIReport:postAccountLoginClick(info.type)
|
|
||||||
end)
|
end)
|
||||||
ModuleManager.LoginManager:getServerList()
|
ModuleManager.LoginManager:getServerList()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user