远征:更新下一关状态

This commit is contained in:
luying
2022-07-20 17:01:18 +08:00
parent 220c635ff1
commit 083201462e
2 changed files with 15 additions and 2 deletions
@@ -67,7 +67,7 @@ export async function getExpeditionStatus(roleId: string, roleName: string, isEn
*/
export async function findOrCreateEnemies(roleId: string, myCe: number, expeditionCode: string, expeditionId: number, battleStatus: number) {
let expeditionWarRecord = await ExpeditionWarRecordModel.getRecordByCodeAndId(expeditionCode, expeditionId);
let expeditionWarRecord = await ExpeditionWarRecordModel.updateStatus(expeditionCode, expeditionId, battleStatus);
if(!expeditionWarRecord) { // 如果没有信息
let curDicExpedition = gameData.expedition.get(expeditionId);
if(curDicExpedition) {