From 42832858a468ed77f339d4bb30ca6a3d5d487ba9 Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 22 Sep 2023 15:38:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E5=AE=9D=E7=89=A9=E6=8A=BD?= =?UTF-8?q?=E5=8D=A1):=20=E5=AE=9D=E7=89=A9=E6=8A=BD=E5=8D=A1=E5=BD=93?= =?UTF-8?q?=E6=8A=BD=E4=B8=AD=E6=97=B6=E6=9C=AA=E8=AE=B0=E5=BD=95hasGet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/activity/gachaService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game-server/app/services/activity/gachaService.ts b/game-server/app/services/activity/gachaService.ts index 811d6fc53..7909ce5c1 100644 --- a/game-server/app/services/activity/gachaService.ts +++ b/game-server/app/services/activity/gachaService.ts @@ -475,7 +475,8 @@ export class GachaPull { if (this.gachaType == GACHA_TYPE.ARTIFACT) gachaResult.setItem(hopeHero, 1); } } - this.player.setUserHope(gachaResult.hid); // 设置心愿单中了没有 + if (this.gachaType == GACHA_TYPE.NORMAL) this.player.setUserHope(gachaResult.hid); // 设置心愿单中了没有 + if (this.gachaType == GACHA_TYPE.ARTIFACT) this.player.setUserHope(gachaResult.id); // 设置心愿单中了没有 } }