✨ feat(gvgBattle): 添加部分保存阵容、进出城池等接口的逻辑

This commit is contained in:
liangtongchuan
2023-02-17 10:58:46 +08:00
committed by luying
parent 3fc6b91a51
commit 596e6e18cf
8 changed files with 197 additions and 29 deletions
@@ -200,3 +200,9 @@ export async function calLeagueCe(league: GVGLeagueType) {
const guilds = await GuildModel.findByCodes(guildCodes);
return guilds.reduce((pre, guild) => pre + guild.guildCe, 0);
}
// 检查当前赛季阶段
export async function checkGVGPeriod(p : GVG_PERIOD) {
let { period } = getGVGPeriodData();
return period == p;
}