军团:许愿池修复
This commit is contained in:
@@ -300,7 +300,7 @@ export class GuildHandler {
|
|||||||
if (ceLimit > role.ce) {
|
if (ceLimit > role.ce) {
|
||||||
return resResult(STATUS.GUILD_NOT_REACH_CONDI);
|
return resResult(STATUS.GUILD_NOT_REACH_CONDI);
|
||||||
}
|
}
|
||||||
// TODO 暂时关闭
|
|
||||||
if(nowSeconds() - role.quitGuildTime < dicParam.ARMY.ARMY_JOIN_COOLDOWNTIME * 60) {
|
if(nowSeconds() - role.quitGuildTime < dicParam.ARMY.ARMY_JOIN_COOLDOWNTIME * 60) {
|
||||||
return resResult(STATUS.GUILD_QUIT_TIME);
|
return resResult(STATUS.GUILD_QUIT_TIME);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ export async function refreshUserGuild(userGuild: UserGuildType, roleId: string)
|
|||||||
let donateName = donateNames[donateNames.length - i - 1];
|
let donateName = donateNames[donateNames.length - i - 1];
|
||||||
await sendMailByContent(MAIL_TYPE.WISH_POOL_REWARD, roleId, {
|
await sendMailByContent(MAIL_TYPE.WISH_POOL_REWARD, roleId, {
|
||||||
params: [donateName, goodInfo.name],
|
params: [donateName, goodInfo.name],
|
||||||
goods: [{ id: goodId, count: drawCnt }]
|
goods: [{ id: goodId, count: 1 }]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ export enum MAIL_TYPE {
|
|||||||
TREAT_ROLE_NAME = 21, // 改玩家名
|
TREAT_ROLE_NAME = 21, // 改玩家名
|
||||||
TREAT_GUILD_INFO = 22, // 改军团名
|
TREAT_GUILD_INFO = 22, // 改军团名
|
||||||
TIME_LIMIT_RANK = 23, // 限时排行榜
|
TIME_LIMIT_RANK = 23, // 限时排行榜
|
||||||
|
GUILD_DAILY_BOX = 24, // 军团每日活跃宝箱补领
|
||||||
|
GUILD_FUND_BOX = 25, // 军团每日捐献宝箱补领
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SEND_NAME = '系统';
|
export const SEND_NAME = '系统';
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ export default class UserGuild extends BaseModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static async donateUpdate(roleId: string, dntRoleName: string, id: string, select?: string) {
|
public static async donateUpdate(roleId: string, dntRoleName: string, id: string, select?: string) {
|
||||||
const result: UserGuildType = await UserGuildModel.findOneAndUpdate({ roleId, status: USER_GUILD_STATUS.ON, 'wishGoods.id': id }, { $inc: { 'wishGoods.$.receiveCnt': 1, 'wishGoods.$.drawCnt': 1}, $push:{'wishGoods.$.dntRoleNames': dntRoleName} }, { new: true }).select(select).lean();
|
const result: UserGuildType = await UserGuildModel.findOneAndUpdate({ roleId, status: USER_GUILD_STATUS.ON, 'wishGoods.id': id }, { $inc: { 'wishGoods.$.receiveCnt': 1, 'wishGoods.$.drawCnt': 1}, $push:{'wishGoods.$.donateNames': dntRoleName} }, { new: true }).select(select).lean();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,8 +38,8 @@
|
|||||||
"id": 5,
|
"id": 5,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "亲爱的小将军,您昨日的军团活跃奖励忘记领取了,现已通过邮件发放,请查收",
|
"content": "亲爱的小将军,感谢您对军团的付出,上周的军团活跃奖励现已通过邮件发放,请查收",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 6,
|
"id": 6,
|
||||||
@@ -59,106 +59,106 @@
|
|||||||
"id": 8,
|
"id": 8,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "小将军,您的军团已开启boss%d,请赶往支援",
|
"content": "您的军团已开启boss%d,请赶往支援",
|
||||||
"time": 24
|
"time": 24
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 9,
|
"id": 9,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "恭喜小将军,军团上下一心,已成功压制boss%d,您在此次压制中获得如下奖励:",
|
"content": "军团上下一心,已成功压制boss%d,您在此次压制中获得如下奖励:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 10,
|
"id": 10,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "小将军,您在上周军团练兵场中有奖励尚未领取,奖励如下:",
|
"content": "您上周军团练兵场中有奖励尚未领取,奖励如下:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 11,
|
"id": 11,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "小将军,%d赠送您一个%d,请查收:",
|
"content": "小将军,%d赠送您%d,请查收:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 12,
|
"id": 12,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "亲爱的小将军,您在%d赛季结算奖励如下:",
|
"content": "亲爱的小将军,您在%d赛季结算奖励如下:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 13,
|
"id": 13,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "恭喜小将军,您在%d赛季最终获得了第%d名,获得如下奖励:",
|
"content": "恭喜小将军,您在%d赛季最终获得了第%d名,获得如下奖励:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 14,
|
"id": 14,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "亲爱的小将军,您参与军团活动奖励已通过邮件发放,请查收:",
|
"content": "亲爱的小将军,您参与军团活动奖励已通过邮件发放,请查收:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 15,
|
"id": 15,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "小将军很抱歉,您在拍卖行的出价已被超过,元宝退还给您,请查收:",
|
"content": "小将军很抱歉,您在拍卖行的出价已被超过,元宝退还给您,请查收:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 16,
|
"id": 16,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "恭喜小将军,您已在拍卖行成功拍下以下物品,请查收:",
|
"content": "恭喜小将军,您已在拍卖行成功拍下以下物品,请查收:",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 17,
|
"id": 17,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "亲爱的小将军,您昨日的拍卖分红忘记领取了,现已通过邮件发放,请查收",
|
"content": "亲爱的小将军,您昨日的拍卖分红忘记领取了,现已通过邮件发放,请查收",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 18,
|
"id": 18,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "亲爱的小将军,您的背包中装备数量已满,请及时清理背包哦。溢出装备已通过邮件发放,请查收",
|
"content": "亲爱的小将军,您的背包中装备数量已满,请及时清理背包哦。溢出装备已通过邮件发放,请查收",
|
||||||
"time": 24
|
"time": 2160
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 19,
|
"id": 19,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "亲爱的小将军,派遣任务已开始下一天的任务,前一天未完成的派遣任务已通过邮件发放,请查收",
|
"content": "亲爱的小将军,派遣任务已开始下一天的任务,前一天未完成的派遣任务已通过邮件发放,请查收",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 20,
|
"id": 20,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "亲爱的小将军,以下是您未领取的【月卡】每日奖励,请查收",
|
"content": "亲爱的小将军,以下是您未领取的【月卡】每日奖励,请查收",
|
||||||
"time": 24
|
"time": 2160
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 21,
|
"id": 21,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "您的名称不合规则,已修改为默认名,这是您的补偿",
|
"content": "您的名称不合规则,已修改为默认名,这是您的补偿",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 22,
|
"id": 22,
|
||||||
"title": "&",
|
"title": "&",
|
||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "您军团的名称不合规则,已修改为默认名",
|
"content": "您军团的名称不合规则,已修改为默认名",
|
||||||
"time": 24
|
"time": 720
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 23,
|
"id": 23,
|
||||||
@@ -166,5 +166,19 @@
|
|||||||
"sendName": "&",
|
"sendName": "&",
|
||||||
"content": "您在限时排行%d中达到第%d名,可获得以下奖励",
|
"content": "您在限时排行%d中达到第%d名,可获得以下奖励",
|
||||||
"time": 720
|
"time": 720
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 24,
|
||||||
|
"title": "&",
|
||||||
|
"sendName": "&",
|
||||||
|
"content": "您昨日的军团活跃宝箱奖励没有领取,现已发送至您的邮箱,请查收",
|
||||||
|
"time": 720
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 25,
|
||||||
|
"title": "&",
|
||||||
|
"sendName": "&",
|
||||||
|
"content": "您昨日的军团捐献所宝箱奖励没有领取,现已发送至您的邮箱,请查收",
|
||||||
|
"time": 720
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
Reference in New Issue
Block a user