【不能用】继续改联网,实现并替换一些发送ws请求的方法

框架跟进
This commit is contained in:
MrZ_26
2022-09-29 02:41:00 +08:00
parent 9ccc019bb9
commit f3face791f
9 changed files with 230 additions and 194 deletions

View File

@@ -51,7 +51,7 @@ local passwordBox=WIDGET.newInputBox{name='password',x=350,y=505,w=500,h=50,secr
}]]
local function _fetchRoom()
fetchTimer=10
NET.fetchRoom()
NET.room.fetch()
end
local scene={}
@@ -70,7 +70,7 @@ function scene.keyDown(key)
local R=roomList:getSel()
if TASK.getLock('fetchRoom')or not R then return end
if R.roomInfo.version==VERSION.room then
NET.enterRoom(R,passwordBox.value)
NET.room.enter(R,passwordBox.value)
else
MES.new('error',text.versionNotMatch)
end