军团:如果强退没有拿,第二天刷新的时候发送到邮箱

This commit is contained in:
luying
2022-05-18 18:39:02 +08:00
parent c159e6ac9b
commit 2b9e9f7e29
5 changed files with 46 additions and 5 deletions
+1
View File
@@ -52,6 +52,7 @@ export enum MAIL_TYPE {
TIME_LIMIT_RANK = 23, // 限时排行榜
GUILD_DAILY_BOX = 24, // 军团每日活跃宝箱补领
GUILD_FUND_BOX = 25, // 军团每日捐献宝箱补领
GUILD_BOSS = 26, // 军团boss奖励
};
export const SEND_NAME = '系统';
+5
View File
@@ -103,6 +103,11 @@ export default class BattleRecord extends BaseModel {
let result: BattleRecordType = await BattleRecordModel.findOneAndUpdate({ battleCode }, { $inc: { regretCnt: count } }, { new: true }).lean();
return result;
}
public static async findByWarTypeAndStatus(roleId: string, warType: number, status: number, beginTime: Date, endTime: Date) {
let result: BattleRecordType[] = await BattleRecordModel.find({ roleId, warType, status, createdAt: { $gte: beginTime, $lt: endTime } }).lean();
return result;
}
}
export const BattleRecordModel = getModelForClass(BattleRecord);
@@ -180,5 +180,12 @@
"sendName": "&",
"content": "您昨日的军团捐献所宝箱奖励没有领取,现已发送至您的邮箱,请查收",
"time": 720
},
{
"id": 26,
"title": "&",
"sendName": "&",
"content": "感谢您昨日为军团演武台所做的贡献,且有奖励尚未领取,现已发送至您的邮箱,请查收",
"time": 720
}
]