练兵场:fix压制成功战报

This commit is contained in:
luying
2021-04-09 17:49:57 +08:00
parent f1b5867a5d
commit 65006bb89c
3 changed files with 10 additions and 6 deletions

View File

@@ -235,11 +235,13 @@ export class GuildTrainHandler {
}
let progress = instance.progress;
guildTrain = await GuildTrainModel.updateGuildTrainProgress(code, trainId, hid, progress, ranks, isComplete);
//type 1失败 2成功3表示系统战报即被成功压制
reports.push({ type: 3, time:nowSeconds(), score: addScore, roleName, trainId, hid, difficulty: battleRecord.record.difficulty });
pushGuildTrainSucMsg(roleId, roleName, code, hid);
if (needLockNext) {
//type 1失败 2成功3表示系统战报即被成功压制
reports.push({ type: 3, time:nowSeconds(), score: addScore, roleName, trainId, hid, difficulty: battleRecord.record.difficulty });
guildTrain = await unlockTrain(code, trainId + 1);
pushGuildTrainSucMsg(roleId, roleName, code, hid);
}
res.releaseCallback();//解锁
} else {