GameServerManager.getLostFrames,小游戏游戏服务中的这个API无用?
this.server.getLastRoomInfo({
success: res => {
this.server.reconnect({ accessInfo: res.data.accessInfo }).then((res) => {
console.log("relinkSuccess", res.maxFrameId, this._svrFrameIndex);//_svrFrameIndex为客户端掉线前收到的最新帧id
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")
}
})