From b8b704444c8810ec5100dbfcb20918c85122500f Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 16 Jun 2021 14:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8C=91=E6=88=98=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E9=87=8D=E5=A4=8D=E5=8F=91=E6=94=BE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/shop/ShopExam.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/shop/ShopExam.ts b/src/models/shop/ShopExam.ts index 9f5997a..46f7843 100644 --- a/src/models/shop/ShopExam.ts +++ b/src/models/shop/ShopExam.ts @@ -232,7 +232,7 @@ export class ShopExamClass extends BaseModule { this.rewardInfo.sort((a, b) => a.rank - b.rank) let results = [] for (let reward of this.rewardInfo) { - if (score >= reward.rank) { + if (score >= reward.rank && reward.type === type) { results.push({ id: reward._id + '', coupon: reward.coupon, count: reward.count }) } }