🐞 fix(后台): pvp当没有赛季的时候战区配置

This commit is contained in:
luying
2023-03-20 13:55:57 +08:00
parent b3573fc29a
commit 8f078dd59f
3 changed files with 6 additions and 5 deletions

View File

@@ -356,7 +356,7 @@ export default class Game extends Service {
const currentGVGTypes = await ServerGroupModel.findByTime(nowSeconds(), 1);
const nextGVGTypes = await ServerGroupModel.findByTime(nowSeconds() + 7 * 86400, 1);
const { seasonEndTime } = await PVPConfigModel.findCurPVPConfig();
const { seasonEndTime = 0 } = (await PVPConfigModel.findCurPVPConfig())||{};
const currentPVPTypes = await ServerGroupModel.findByTime(nowSeconds(), 2);
const nextPVPTypes = await ServerGroupModel.findByTime(seasonEndTime, 2);