From 62b84e2c353b77422118d70d55f0a1c1926c38ce Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 19 Sep 2023 21:03:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E6=8A=BD=E5=8D=A1):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=9A=E4=BF=9D=E5=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/activityField/gachaField.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/domain/activityField/gachaField.ts b/shared/domain/activityField/gachaField.ts index 8fe390b28..40aca8445 100644 --- a/shared/domain/activityField/gachaField.ts +++ b/shared/domain/activityField/gachaField.ts @@ -55,6 +55,7 @@ export class GachaListReturn { point: number = 0; // 积分 turntable: Turntable[] = []; // 转盘记录 pickHero: number = 0; // 玩家选择的武将 + floor: { id: number, count: number }[] = [] constructor(dicGacha: DicGacha, userGacha: UserGachaType) { this.gachaId = dicGacha.id; @@ -68,6 +69,9 @@ export class GachaListReturn { this.point = userGacha.point; this.turntable = userGacha.turntable; this.pickHero = userGacha.pickHero; + for(let { id, count } of (userGacha.floor||[])) { + this.floor.push({ id, count }) + } } this.remainFloor = getGachaRemainFloor(this.gachaId, userGacha?.floor||[]); }