定时任务:修复自动开服开关

This commit is contained in:
luying
2022-05-11 15:16:11 +08:00
parent 0bc35aba54
commit 751c796a6b
3 changed files with 20 additions and 5 deletions

View File

@@ -53,6 +53,9 @@ export class GMMail {
export default class ServerStategy {
@prop({ required: true, default: false })
isOpen: boolean; // 是否开启
@prop({ required: true, default: 0 })
maxPlayerCnt: number; // 人数上限
@@ -72,6 +75,7 @@ export default class ServerStategy {
stopRegisterTime: number; // 关闭注册时间
constructor(stategy: ServerStategyUpdate & { hasOpenMail: boolean, hasCircleMail: boolean}) {
this.isOpen = stategy.isOpen;
this.maxPlayerCnt = stategy.maxPlayerCnt;
this.timers = stategy.timers;
this.activityGroupId = stategy.activityGroupId;