联网推进(用户名相关*2)

This commit is contained in:
MrZ626
2021-04-06 15:26:59 +08:00
parent 9fdb50d12a
commit c6db6834e9
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ end
function NET.wsConnectPlay() function NET.wsConnectPlay()
if _lock("connectPlay")then if _lock("connectPlay")then
WS.connect("play","/play",JSON.encode{ WS.connect("play","/play",JSON.encode{
id=USER.uid, uid=USER.uid,
accessToken=NET.accessToken, accessToken=NET.accessToken,
}) })
end end

View File

@@ -183,7 +183,7 @@ local loadingThread=coroutine.wrap(function()
WS.connect("app","/app") WS.connect("app","/app")
if USER.authToken then if USER.authToken then
WS.connect("user","/user",JSON.encode{ WS.connect("user","/user",JSON.encode{
id=USER.uid, uid=USER.uid,
authToken=USER.authToken, authToken=USER.authToken,
}) })
end end