寻宝:匹配开战时更新内存中的寻宝状态

This commit is contained in:
liangtongchuan
2021-01-18 20:15:56 +08:00
parent 1b9cc31d73
commit 109a3dab6e

View File

@@ -257,6 +257,7 @@ export class ComBattleHandler {
// 机器人队伍 3 秒直接开战
setTimeout(async () => {
await ComBattleTeamModel.updateStatus(teamCode, COM_TEAM_STATUS.FIGHTING);
comTeam.status = COM_TEAM_STATUS.FIGHTING;
channelService.pushMessageByUids('onComBtlStart', resResult(STATUS.SUCCESS, {teamCode, roleStatus: comTeam.roleStatus}), [{uid: roleId, sid}]);
}, 3000);
}, COM_BTL_CONST.ASSIST_TIME);