fix(远征): 修复远征关卡挑战限制
This commit is contained in:
@@ -95,6 +95,11 @@ export class ExpeditionBattleHandler {
|
|||||||
// const roleName = session.get('roleName');
|
// const roleName = session.get('roleName');
|
||||||
const { expeditionCode, expeditionId } = msg;
|
const { expeditionCode, expeditionId } = msg;
|
||||||
|
|
||||||
|
let expeditionWarRecord = await ExpeditionWarRecordModel.getRecordByCodeAndId(expeditionCode, expeditionId);
|
||||||
|
if (expeditionWarRecord && (expeditionWarRecord.battleStatus == EXPEDITION_WAR_RECORD_STATUS.SUCCESS)) {
|
||||||
|
return resResult(STATUS.EXPEDITION_DUPLICATE_CHALLENGE);
|
||||||
|
}
|
||||||
|
|
||||||
let { myCe } = await ExpeditionRecordModel.getExpeditionRecordByCode(expeditionCode);
|
let { myCe } = await ExpeditionRecordModel.getExpeditionRecordByCode(expeditionCode);
|
||||||
|
|
||||||
let curExpeditionWarRecord = await findOrCreateEnemies(roleId, myCe, expeditionCode, expeditionId, EXPEDITION_WAR_RECORD_STATUS.WAITING);
|
let curExpeditionWarRecord = await findOrCreateEnemies(roleId, myCe, expeditionCode, expeditionId, EXPEDITION_WAR_RECORD_STATUS.WAITING);
|
||||||
|
|||||||
Reference in New Issue
Block a user