this.server.getLastRoomInfo({
success: res => {
this.server.reconnect({ accessInfo: res.data.accessInfo }).then((res) => {
console.log("relinkSuccess", res.maxFrameId, this._svrFrameIndex);
this.server.getLostFrames({
beginFrameId: this._svrFrameIndex,
endFrameId: res.maxFrameId
}).then(res => {
console.log("getlostSuccess", res)
this._frames.push(res.data.frameList);
}).catch(err => { console.log(err, "getlostFail") })
}).catch(err => {
console.log(err, "relinkFail")
});
},
fail: err => {
console.log(err, "getLastRoomInfoFail")
}
})
返回的结果总是超时,是不是游戏服务自身本来就没有存储整个对局的帧?