From 585a741be5b380c49079da58041864245e54b449 Mon Sep 17 00:00:00 2001 From: mamengke01 <794347210@qq.com> Date: Wed, 3 Feb 2021 10:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=8F=96=E5=AE=9D=E7=AE=B1=E5=A5=96?= =?UTF-8?q?=E5=8A=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/donateHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/servers/battle/handler/donateHandler.ts b/game-server/app/servers/battle/handler/donateHandler.ts index eeef4c130..ed5202f3d 100644 --- a/game-server/app/servers/battle/handler/donateHandler.ts +++ b/game-server/app/servers/battle/handler/donateHandler.ts @@ -77,7 +77,7 @@ export class DonationHandler { let { boxRewards, fund } = getArmyDonateBoxBaseById(id); let { donateFund, donationLv } = await getDonation(code, serverId); let { boxRewardRatio, requireRewardRatio } = getArmyDonateBaseByLv(donationLv); - if (donateFund < fund * (100 + requireRewardRatio) ) + if (donateFund < Math.floor(fund * (100 + requireRewardRatio)/100) ) return resResult(STATUS.GUILD_DONATE_BOXS_NOT_GOT); boxRewards = boxRewards.map(({id, count})=>{ return { id, count: count * (boxRewardRatio + 100) };