取消NET.connected变量
This commit is contained in:
@@ -5,7 +5,6 @@ local WS,TIME=WS,TIME
|
|||||||
local yield=YIELD
|
local yield=YIELD
|
||||||
|
|
||||||
local NET={
|
local NET={
|
||||||
connected=false,
|
|
||||||
allow_online=false,
|
allow_online=false,
|
||||||
accessToken=false,
|
accessToken=false,
|
||||||
roomList={},--Local roomlist, updated frequently
|
roomList={},--Local roomlist, updated frequently
|
||||||
@@ -309,7 +308,6 @@ function NET.updateWS_app()
|
|||||||
local res=_parse(message)
|
local res=_parse(message)
|
||||||
if res then
|
if res then
|
||||||
if res.type=='Connect'then
|
if res.type=='Connect'then
|
||||||
NET.connected=true
|
|
||||||
if VERSION.code>=res.lowest then
|
if VERSION.code>=res.lowest then
|
||||||
NET.allow_online=true
|
NET.allow_online=true
|
||||||
if USER.authToken then
|
if USER.authToken then
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ function scene.keyDown(key)
|
|||||||
end
|
end
|
||||||
elseif key=="a"then
|
elseif key=="a"then
|
||||||
if testButton(3)then
|
if testButton(3)then
|
||||||
if NET.connected then
|
if WS.status('app')=='running'then
|
||||||
NET.tryLogin(false)
|
NET.tryLogin(false)
|
||||||
else
|
else
|
||||||
NET.wsconn_app()
|
NET.wsconn_app()
|
||||||
|
|||||||
Reference in New Issue
Block a user