feat(gvg): 添加debug接口

This commit is contained in:
luying
2023-03-01 10:36:45 +08:00
parent 6afc62d052
commit 3a23e9e2df
3 changed files with 36 additions and 0 deletions

View File

@@ -668,11 +668,14 @@ export class GVGBattleHandler {
}
async debugStartSchedule() {
let { countdownTime } = getGVGPeriodData();
pinus.app.rpc.guild.guildRemote.setPeriodTime.broadcast(nowSeconds() + GVG.GVG_GUARD_START_TIME, countdownTime);
await pinus.app.rpc.systimer.systimerRemote.gvgBattleStartSchedule.broadcast();
return resResult(STATUS.SUCCESS);
}
async debugEndSchedule() {
pinus.app.rpc.guild.guildRemote.resetPeriodTime.broadcast();
await pinus.app.rpc.systimer.systimerRemote.gvgBattleEndSchedule.broadcast();
return resResult(STATUS.SUCCESS);
}