From 569aaf648c3838999f8ea2045099ffc6fd95892a Mon Sep 17 00:00:00 2001 From: dingchaolin Date: Thu, 16 Mar 2023 14:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(guild):=20=E6=8D=90=E8=B5=A0?= =?UTF-8?q?=E5=AE=9D=E7=AE=B1=E4=BF=9D=E6=8A=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/donateService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-server/app/services/donateService.ts b/game-server/app/services/donateService.ts index 23ad848db..82addb72c 100644 --- a/game-server/app/services/donateService.ts +++ b/game-server/app/services/donateService.ts @@ -81,8 +81,8 @@ export function changeReceiveBoxIdByLvAndIndex(receiveBoxs: number[], donationLv // 获取已领取箱子的index let { index } = getArmyDonateBoxBaseById(boxId); // 获取donationLv等级,第index个箱子的id - let { id } = getArmyDonateBoxBaseByLvAndIndex(donationLv, index); - haveGotBoxIds.push(id); + let donateInfo = getArmyDonateBoxBaseByLvAndIndex(donationLv, index); + haveGotBoxIds.push(donateInfo ? donateInfo.id : 0); }); return haveGotBoxIds; } \ No newline at end of file