🐞 fix(gvg): 发送邮件

This commit is contained in:
luying
2023-02-24 15:36:18 +08:00
parent 22f4730546
commit 368e64829a
3 changed files with 4 additions and 3 deletions

View File

@@ -638,10 +638,10 @@ export class GVGManageHandler {
const checkAuth = await checkLeagueAuth(roleId, myLeague, LEAGUE_MANAGE_TYPE.SEND_MAIL);
if(!checkAuth) return resResult(STATUS.GVG_HAS_NO_AUTH);
let auth = getMyAuth(myLeague, roleId);
const { guildCodes } = myLeague;
//下发邮件
await sendMailToLeagueByContent(MAIL_TYPE.GUILD_MAIL, myLeague.leagueCode, { sendName: `${roleName}`, params: [content] }, myLeague);
await sendMailToLeagueByContent(MAIL_TYPE.LEAGUE_MAIL, myLeague.leagueCode, { sendName: `${auth == 1? "盟主": "副盟主"}${roleName}`, params: [content] }, myLeague);
return resResult(STATUS.SUCCESS, { isSuccess: true });
}