🐞 fix(后台): pvp当没有赛季的时候战区配置
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user