✨ feat(限时排行榜): 修复限时排行榜奖励发放

This commit is contained in:
luying
2023-05-23 20:59:30 +08:00
parent 1fda7ac77f
commit 0932912da9
5 changed files with 55 additions and 3 deletions
+8
View File
@@ -86,6 +86,14 @@ export async function sendMailToLeagueByContent(contentId: MAIL_TYPE, leagueCode
return true;
}
export async function sendMailToManyPlayerByContent(contentId: MAIL_TYPE, roleIds: string[], params: { sendName?: string, endTime?: number, params?: string[], goods?: RewardInter[] }) {
let f = new SendMailFun();
let code = f.setWithContentId(contentId, params);
await f.createGroupMails(code, roleIds);
await f.pushToUsers();
return true;
}
export async function sendMailsByGmMail(gmmails: GMMailType[]) {
let f = new SendMailFun();
for(let gmmail of gmmails) {