暂时屏蔽挑战中奖品的重复获取检测
This commit is contained in:
parent
0401906403
commit
20fcd3d163
@ -192,10 +192,10 @@ class ExamController extends BaseController {
|
|||||||
let rewards = examData.getReward(statMap.score, 0)
|
let rewards = examData.getReward(statMap.score, 0)
|
||||||
rewards = rewards.concat(examData.getReward(total, 1))
|
rewards = rewards.concat(examData.getReward(total, 1))
|
||||||
for (let reward of rewards) {
|
for (let reward of rewards) {
|
||||||
let geted = await UserReward.examRewardGot(history, accountid, reward.id)
|
// let geted = await UserReward.examRewardGot(history, accountid, reward.id)
|
||||||
if (geted) {
|
// if (geted) {
|
||||||
continue
|
// continue
|
||||||
}
|
// }
|
||||||
const data = await UserReward.addOneRecord(history, accountid, reward.id, reward.coupon, reward.count)
|
const data = await UserReward.addOneRecord(history, accountid, reward.id, reward.coupon, reward.count)
|
||||||
rewardList.push(data)
|
rewardList.push(data)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user