diff --git a/game-server/app/services/auctionService.ts b/game-server/app/services/auctionService.ts index d63eaf142..9aad4da58 100644 --- a/game-server/app/services/auctionService.ts +++ b/game-server/app/services/auctionService.ts @@ -449,11 +449,12 @@ export async function sendUngotDividend(debug = false) { } for (let [roleId, count] of rewards) { - // TODO: 邮件类型修改 - await sendMailByContent(MAIL_TYPE.GUILD_DIVIDEND, roleId, { - params: [JSON.stringify(count)], - goods: [{ id: CURRENCY_BY_TYPE.get(CURRENCY_TYPE.GOLD), count }] - }); + if(count > 0) { + await sendMailByContent(MAIL_TYPE.GUILD_DIVIDEND, roleId, { + params: [JSON.stringify(count)], + goods: [{ id: CURRENCY_BY_TYPE.get(CURRENCY_TYPE.GOLD), count }] + }); + } } debug === true ? await updateDebugDividendsStatus(DIVIDEND_STATUS.SENT) : await updateOfficialDividendsStatus(DIVIDEND_STATUS.SENT);