军团:修复bug

This commit is contained in:
luying
2021-10-23 18:37:29 +08:00
parent 18d81a6165
commit 254648610f
2 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export async function sendMailByContent(contentId: MAIL_TYPE, hisRoleId: string,
}
export async function sendMailToGuildByContent(contentId: MAIL_TYPE, guildCode: string, params: { sendName?: string, endTime?: number, params?: string[], goods?: RewardInter[], notPush?: boolean }, guild?: GuildType) {
if(!guild) guild = await GuildModel.findByCode(guildCode);
if(!guild) guild = await GuildModel.findByCode(guildCode, null, '+members');
if(!guild) return false;
let f = new SendMailFun();
f.setWithContentId(contentId, params);