🐞 fix(guild): 修改邮件发奖bug
This commit is contained in:
@@ -226,16 +226,17 @@ export async function getUserGuildWithRefActive(roleId: string, select?: string)
|
||||
// console.log('####### isRefDaily', isRefDaily, refTimeDaily, now)
|
||||
if (isRefDaily) {
|
||||
userGuild = await UserGuildModel.resetDailyInfoByRefTimeDaily(roleId, refTimeDaily);
|
||||
if (!userGuild) {
|
||||
userGuild = await UserGuildModel.getMyGuild(roleId, select ? select + ' wishGoods +refTimeDaily' : '+refTimeDaily');
|
||||
if (!userGuild) return false;
|
||||
};
|
||||
if (refTimeDaily) {
|
||||
if (refTimeDaily && userGuild) {
|
||||
await sendUnreceivedWishPool(wishGoods, roleId);
|
||||
await sendUnreceivedActiveBox(roleId, guildCode, refTimeDaily, receivedActive);
|
||||
await sendUnreceivedDonateBox(roleId, guildCode, refTimeDaily, receiveBoxs);
|
||||
await sendUnreceivedBossWar(roleId, refTimeDaily);
|
||||
}
|
||||
if (!userGuild) {
|
||||
userGuild = await UserGuildModel.getMyGuild(roleId, select ? select + ' wishGoods +refTimeDaily' : '+refTimeDaily');
|
||||
if (!userGuild) return false;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
return userGuild;
|
||||
|
||||
Reference in New Issue
Block a user