军团:解散的时候发送邮件

This commit is contained in:
luying
2022-07-04 20:05:43 +08:00
parent d307aa96f3
commit 74f558be36
3 changed files with 9 additions and 0 deletions

View File

@@ -573,6 +573,7 @@ export class GuildHandler {
for(let roleId of members) {
reportTAEvent(roleId, TA_EVENT.GUILD_QUIT, { name: guild.name, way: GUILD_QUIT_WAY.DISMISS }, ip);
}
await sendMailToGuildByContent(MAIL_TYPE.GUILD_DISSMISS, code, {}, guild);
return resResult(STATUS.SUCCESS, { code, status: guild.status });
}

View File

@@ -55,6 +55,7 @@ export enum MAIL_TYPE {
GUILD_BOSS = 26, // 军团boss奖励
PVP_BOX = 27, // pvp巅峰之路宝箱
DAILY_COIN = 28, // 招财进宝宝箱
GUILD_DISSMISS = 29, // 军团解散
};
export const SEND_NAME = '系统';

View File

@@ -201,5 +201,12 @@
"sendName": "&",
"content": "您昨日在招财进宝中有宝箱没有领取,现已发送至您的邮箱,请查收",
"time": 720
},
{
"id": 29,
"title": "&",
"sendName": "&",
"content": "很抱歉,您的军团已被解散,振作起来寻找新的军团加入吧",
"time": 720
}
]