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||[]); }