后台:内存快照

This commit is contained in:
luying
2022-09-20 15:32:09 +08:00
parent a830ae040e
commit 2b687083de
12 changed files with 218 additions and 3 deletions
@@ -4,6 +4,7 @@ import { STATUS } from '../../../consts';
import { handleComBtlProgress, _addToSearchingTeams } from '../../../services/comBattleService';
import { MemComBtlTeam } from '../../../domain/battleField/ComBattleTeamField';
import { errlogger } from '../../../util/logger';
import { saveComBattleMemory } from '../../../services/log/memoryLogService';
export default function (app: Application) {
new HandlerService(app, {});
@@ -44,4 +45,11 @@ export class ComBattleRemote {
}
}
public saveComBattleMemory() {
try {
return saveComBattleMemory();
} catch(e) {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
}