奖励下发
This commit is contained in:
@@ -25,7 +25,7 @@ export default class Mail extends BaseModel {
|
||||
await MailModel.insertMany(mails);
|
||||
}
|
||||
|
||||
public static async addMail(params:{ goods: Array<RewardInter>, sendName: string, mailId: number, sendTime?: number}) {
|
||||
public static async addMail(params:{roleId: string, goods: Array<RewardInter>, sendName: string, mailId: number, sendTime?: number}) {
|
||||
const doc = new MailModel();
|
||||
const mail = Object.assign(doc.toJSON(), params);
|
||||
const mailInfo: MailType = await MailModel.create(mail);
|
||||
|
||||
Reference in New Issue
Block a user