diff --git a/game-server/app/services/rewardService.ts b/game-server/app/services/rewardService.ts index 47ea1c8fa..5833d343d 100644 --- a/game-server/app/services/rewardService.ts +++ b/game-server/app/services/rewardService.ts @@ -218,8 +218,9 @@ export async function addItems(roleId: string, roleName: string, sid: string, go gold: role.gold, coin: role.coin, ap: addAp }), uids); if(gold.length > 0) { - let goldCount = gold.reduce((pre, cur) => { return pre + cur.count }, 0) - showItems.push(getGoldObject(goldCount)); + gold.forEach(({ count }) => { + showItems.push(getGoldObject(count)); + }); } if(coin > 0) { showItems.push(getCoinObject(coin));