From 111af1b7e9279ae9268e97459e25767efb065243 Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 21 Nov 2022 13:27:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E9=81=93=E5=85=B7):=20?= =?UTF-8?q?=E5=86=9B=E5=9B=A2=E8=B5=84=E9=87=91=E5=AE=9D=E7=AE=B1=E4=B8=80?= =?UTF-8?q?=E9=94=AE=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/activity/giftPackageService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game-server/app/services/activity/giftPackageService.ts b/game-server/app/services/activity/giftPackageService.ts index 8d8539c56..931fdafda 100644 --- a/game-server/app/services/activity/giftPackageService.ts +++ b/game-server/app/services/activity/giftPackageService.ts @@ -86,11 +86,11 @@ export async function useGiftPackage(roleId: string, roleName: string, sid: stri } case GIFT_PACKAGE_TYPE.GUILD_FUND: // 军团资金 { - console.log('ccccc',guildCode, giftPackageData.count) + console.log('ccccc',guildCode, giftPackageData.count, giftCount) if(!guildCode) return resResult(STATUS.ITEM_CANNOT_RECEIVE_NO_GUILD); - const guild = await GuildModel.updateInfo(guildCode, {}, { fund: giftPackageData.count }); + const guild = await GuildModel.updateInfo(guildCode, {}, { fund: giftPackageData.count * giftCount }); await pushGuildInfoUpdate(guildCode, { fund: guild.fund }); - recordGuildFund(serverId, guild, giftPackageData.count); + recordGuildFund(serverId, guild, giftPackageData.count * giftCount); break; } default: