【登录】优化登录失败时,界面文字提示

dev_chengFeng
gaoxin 2021-09-02 22:12:58 +08:00
parent fbfa80611a
commit 316adf6fbd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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