军团:修改定时任务活跃奖励逻辑

This commit is contained in:
luying
2021-01-26 14:38:57 +08:00
parent 08ef299fec
commit d8cc01f036
8 changed files with 33 additions and 33 deletions

View File

@@ -849,6 +849,10 @@ export class GuildHandler {
const myUserGuild = await UserGuildModel.getMyGuild(roleId, 'auth guildCode');
if(!myUserGuild) return resResult(STATUS.GUILD_NOT_FOUND);
// 检查权限
const checkResult = await checkAuth(GUILD_OPERATE.GET_ACTIVE_RANK, roleId);
if(!checkResult) return resResult(STATUS.GUILD_AUTH_NOT_ENOUGH);
const hasRank = await existsRank(REDIS_KEY.GUILD_ACTIVE_RANK, serverId);
if(!hasRank) await initSingleRankWithServer(REDIS_KEY.GUILD_ACTIVE_RANK, serverId);