活动:修改string变id&count的转换方法
This commit is contained in:
@@ -5,11 +5,11 @@ import { GuildModel, GuildType } from "../../db/Guild";
|
||||
import { RoleModel } from "../../db/Role";
|
||||
import { TimeLimitRankData } from "../../domain/activityField/timeLimitRankField";
|
||||
import { GuildRankInfo, RoleRankInfo } from "../../domain/rank";
|
||||
import { stringWithTypeToRewardInter } from "../../pubUtils/util";
|
||||
import { sendMailByContent, sendMailToGuildByContent } from "../mailService";
|
||||
import { Rank } from "../rankService";
|
||||
import { getServerCreateTime } from "../redisService";
|
||||
import { getActivitiesByType, getActivityById } from "./activityService";
|
||||
import { stringToRewardInter } from "./giftPackageService";
|
||||
|
||||
|
||||
/**
|
||||
@@ -77,11 +77,11 @@ export async function sendRankMail(data: TimeLimitRankData, serverId: number) {
|
||||
if(reward) {
|
||||
await sendMailToGuildByContent(MAIL_TYPE.TIME_LIMIT_RANK, code, {
|
||||
params: [data.tabName,`${rank}`],
|
||||
goods: stringToRewardInter(reward.guildRewards)
|
||||
goods: stringWithTypeToRewardInter(reward.guildRewards)
|
||||
});
|
||||
if(leader.roleId) await sendMailByContent(MAIL_TYPE.TIME_LIMIT_RANK, leader.roleId, {
|
||||
params: [data.tabName,`${rank}`],
|
||||
goods: stringToRewardInter(reward.rewards)
|
||||
goods: stringWithTypeToRewardInter(reward.rewards)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -93,7 +93,7 @@ export async function sendRankMail(data: TimeLimitRankData, serverId: number) {
|
||||
if(reward) {
|
||||
await sendMailByContent(MAIL_TYPE.TIME_LIMIT_RANK, roleId, {
|
||||
params: [data.tabName, `${rank}`],
|
||||
goods: stringToRewardInter(reward.rewards)
|
||||
goods: stringWithTypeToRewardInter(reward.rewards)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user