后台:更新开服邮件
This commit is contained in:
@@ -21,11 +21,13 @@ export default class ServerStategy {
|
||||
@prop({ required: true, default: 0 })
|
||||
stopRegisterTime: number; // 关闭注册时间
|
||||
|
||||
constructor(stategy: ServerStategyUpdate) {
|
||||
constructor(stategy: ServerStategyUpdate & { hasOpenMail: boolean, hasCircleMail: boolean}) {
|
||||
this.maxPlayerCnt = stategy.maxPlayerCnt;
|
||||
this.timers = stategy.timers;
|
||||
this.activityGroupId = stategy.activityGroupId;
|
||||
this.stopRegisterTime = stategy.stopRegisterTime;
|
||||
if(stategy.hasCircleMail) this.circleMail = stategy.circleMail;
|
||||
if(stategy.hasOpenMail) this.openMail = stategy.openMail;
|
||||
}
|
||||
}
|
||||
export interface ServerStategyType extends Pick<DocumentType<ServerStategy>, keyof ServerStategy> { };
|
||||
|
||||
Reference in New Issue
Block a user