From 20fcd3d163b27fe201e9d1ae96099f7eb2afb34b Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 9 Jun 2021 20:27:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD=E6=8C=91?= =?UTF-8?q?=E6=88=98=E4=B8=AD=E5=A5=96=E5=93=81=E7=9A=84=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/exam.controller.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/controllers/exam.controller.ts b/src/api/controllers/exam.controller.ts index 7cb2c41..67a5e02 100644 --- a/src/api/controllers/exam.controller.ts +++ b/src/api/controllers/exam.controller.ts @@ -192,10 +192,10 @@ class ExamController extends BaseController { let rewards = examData.getReward(statMap.score, 0) rewards = rewards.concat(examData.getReward(total, 1)) for (let reward of rewards) { - let geted = await UserReward.examRewardGot(history, accountid, reward.id) - if (geted) { - continue - } + // let geted = await UserReward.examRewardGot(history, accountid, reward.id) + // if (geted) { + // continue + // } const data = await UserReward.addOneRecord(history, accountid, reward.id, reward.coupon, reward.count) rewardList.push(data) }