登录后自动跳转到登录后页面
This commit is contained in:
@@ -141,10 +141,12 @@ function Tick.httpREQ_newLogin(data)
|
|||||||
LOGIN=response.code==200
|
LOGIN=response.code==200
|
||||||
if res then
|
if res then
|
||||||
if LOGIN then
|
if LOGIN then
|
||||||
LOG.print(text.loginSuccessed..": "..res.message)
|
LOG.print(text.loginSuccessed)
|
||||||
ACCOUNT.email=res.email
|
ACCOUNT.email=res.email
|
||||||
ACCOUNT.auth_token=res.auth_token
|
ACCOUNT.auth_token=res.auth_token
|
||||||
FILE.save(ACCOUNT,"account","")
|
FILE.save(ACCOUNT,"account","")
|
||||||
|
SCN.pop()
|
||||||
|
SCN.go("netgame")
|
||||||
else
|
else
|
||||||
LOG.print(text.netErrorCode..response.code..": "..res.message,"warn")
|
LOG.print(text.netErrorCode..response.code..": "..res.message,"warn")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user