登录后自动跳转到登录后页面

This commit is contained in:
MrZ626
2020-12-03 00:20:28 +08:00
parent d7b57a77c6
commit c88dd155dc

View File

@@ -141,10 +141,12 @@ function Tick.httpREQ_newLogin(data)
LOGIN=response.code==200
if res then
if LOGIN then
LOG.print(text.loginSuccessed..": "..res.message)
LOG.print(text.loginSuccessed)
ACCOUNT.email=res.email
ACCOUNT.auth_token=res.auth_token
FILE.save(ACCOUNT,"account","")
SCN.pop()
SCN.go("netgame")
else
LOG.print(text.netErrorCode..response.code..": "..res.message,"warn")
end