feat(邮件): 添加专属邮件

This commit is contained in:
luying
2023-04-06 17:36:44 +08:00
parent ec65f880b7
commit 579ee7846f
7 changed files with 17 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ export class MailParam {
endTime: number = 0; // 过期时间
goods: ItemReward[] = []; // 奖励
status: MAIL_STATUS = MAIL_STATUS.CREATE; // 状态
isSp: boolean = false; // 特殊
constructor(mailType: GM_MAIL_TYPE, mail: MailType|GroupMailType|ServerMailType, roleId?: string) {
this.setMail(mailType, mail);
@@ -32,6 +33,7 @@ export class MailParam {
this.mailType = mailType;
this.sendTime = mail.sendTime;
this.endTime = mail.endTime;
this.isSp = mail.isSp;
}
setSingleMail(mail: MailType, roleId?: string) {