修正主动退出游戏后, 还是无法进入游戏的bug

This commit is contained in:
zhl 2021-03-11 16:46:44 +08:00
parent 39e2e320be
commit 211320ffb9

View File

@ -169,7 +169,7 @@ export async function createRobot(data: any) {
*/
export async function leftGame(accountid: string, roomid: string) {
debugRoom(`player dead and left game: ${roomid}, ${accountid}`)
const data = { roomid }
const data = { roomid, token: SERVER_TOKEN }
let dataStr = JSON.stringify(data)
const infoHost = await new Service().getInfoSvr()
if (!infoHost) {