演武台:鼓舞,次数限制,掉落修改,结构修改
This commit is contained in:
@@ -14,6 +14,7 @@ import { GMMailType, GMMailModel } from "../db/GMMail";
|
||||
import { getGuildChannelSid, getWorldChannelSid } from "./chatChannelService";
|
||||
import { GMMailRecordModel } from "../db/GMMailRecord";
|
||||
import { BAG } from "../pubUtils/dicParam";
|
||||
import { GuildModel, GuildType } from "../db/Guild";
|
||||
|
||||
/**
|
||||
* 获取邮件信息
|
||||
@@ -57,6 +58,15 @@ export async function sendMailByContent(contentId: MAIL_TYPE, hisRoleId: string,
|
||||
await f.sendToUsers(GM_MAIL_TYPE.SINGLE, [hisRoleId]);
|
||||
}
|
||||
|
||||
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) return false;
|
||||
let f = new SendMailFun();
|
||||
f.setWithContentId(contentId, params);
|
||||
await f.sendToGuild(guildCode, guild.members);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送邮件方法类
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user