接收注册时服务器可能会返回更多的消息

This commit is contained in:
MrZ626
2021-04-22 17:46:23 +08:00
parent 5b22712058
commit c27e99aa6c

View File

@@ -249,8 +249,14 @@ function NET.updateWS_app()
elseif res.action==1 then--Get notice
--?
elseif res.action==2 then--Register
LOG.print(res.data.message,300,COLOR.N)
if SCN.cur=="register"then SCN.back()end
if res.type=="Self"or res.type=="Server"then
LOG.print(res.data.message,300,COLOR.N)
if SCN.cur=="register"then
SCN.back()
end
else
LOG.print(res.reason or"Registration failed",300,COLOR.N)
end
NET.unlock("register")
end
else