🐞 fix(gvg): 修复激战期离开战场逻辑

This commit is contained in:
luying
2023-02-22 11:01:09 +08:00
parent e2e901dc1b
commit cfed1f1430
5 changed files with 40 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ import { setHiddenData } from '../../../services/dataService';
import { setKvToMemory } from '../../../services/pushService';
import { getGVGConfig, setGVGConfig, setGVGServerGroup } from '../../../services/gvg/gvgService';
import { GVGConfigType } from '../../../db/GVGConfig';
import { catapultHurt, gvgBattleEnd, gvgBattleSeconds, gvgBattleStart, initCatapult } from '../../../services/gvg/gvgBattleService';
import { catapultHurt, gvgBattleEnd, gvgBattleSeconds, gvgBattleStart, initCatapult, leaveCity } from '../../../services/gvg/gvgBattleService';
import { clearBattleMemory } from '../../../services/gvg/gvgBattleMemory';
export default function (app: Application) {
@@ -168,4 +168,12 @@ export class GuildRemote {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
public async leaveCity(roleId: string, isForce: boolean) {
try {
return leaveCity(roleId, isForce);
} catch(e) {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
}