【登录】优化登录失败时,界面文字提示
parent
fbfa80611a
commit
316adf6fbd
|
@ -66,7 +66,7 @@ function this.Initialize()
|
|||
else
|
||||
local errCode = result[2]
|
||||
if not errCode then
|
||||
PopupTipPanel.ShowTip("登录失败")
|
||||
MsgPanel.ShowOne("登录失败")
|
||||
elseif errCode == "101" then
|
||||
MsgPanel.ShowOne("根据国家防沉迷相关规定,我们将不再向未成年人提供服务,敬请谅解!")
|
||||
end
|
||||
|
|
|
@ -828,7 +828,7 @@ function this.OnReceiveLogin(str)
|
|||
local json = require 'cjson'
|
||||
local data = json.decode(str)
|
||||
if data.errorCode and data.errorCode == -1 then
|
||||
PopupTipPanel.ShowTip(data.reason or Language[11145])
|
||||
MsgPanel.ShowOne(data.reason or Language[11145])
|
||||
return
|
||||
end
|
||||
if data.uid and data.token and not LoginManager.IsLogin then
|
||||
|
|
Loading…
Reference in New Issue