修正挑战奖励重复发放的bug
This commit is contained in:
parent
90a001675f
commit
b8b704444c
@ -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 })
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user