整理代码,适配新的玩家信息拉取机制,修改玩家数据保存方式

This commit is contained in:
MrZ626
2021-03-30 12:02:51 +08:00
parent 0efdb7dc33
commit ec63618bea
4 changed files with 189 additions and 211 deletions

View File

@@ -178,9 +178,9 @@ local loadingThread=coroutine.create(function()
LOADED=true
--Connect to server
TASK.new(TICK_WS_app)
TASK.new(TICK_WS_user)
TASK.new(TICK_WS_play)
TASK.new(NET.TICK_WS_app)
TASK.new(NET.TICK_WS_user)
TASK.new(NET.TICK_WS_play)
WS.connect("app","/app")
if USER.authToken then
WS.connect("user","/user",JSON.encode{