暂时屏蔽挑战中奖品的重复获取检测

This commit is contained in:
zhl 2021-06-09 20:27:35 +08:00
parent 0401906403
commit 20fcd3d163

View File

@ -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)
}