From 04cde64260b54bcf5302882202156b94c3c09b69 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 2 Jun 2022 11:29:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=EF=BC=9A=E5=86=9B=E5=9B=A2?= =?UTF-8?q?=E5=88=86=E7=BA=A2=E4=B8=BA0=E7=9A=84=E4=B8=8D=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/auctionService.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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);