增加对空白奖励的支持
This commit is contained in:
parent
72b4949347
commit
bb123ec23e
@ -34,8 +34,8 @@ class LotteryController extends BaseController {
|
|||||||
for (let reward of cfg.lottery_cfgs) {
|
for (let reward of cfg.lottery_cfgs) {
|
||||||
let name = '抽奖券'
|
let name = '抽奖券'
|
||||||
let couponUrl = reward.icon
|
let couponUrl = reward.icon
|
||||||
if (reward.rewardType === 0) {
|
if (reward.rewardType === 0 && reward.coupon !== EMPTY) {
|
||||||
if (!couponMap.has(reward.coupon) && reward.coupon !== EMPTY) {
|
if (!couponMap.has(reward.coupon)) {
|
||||||
let coupon = await Coupon.findById(reward.coupon)
|
let coupon = await Coupon.findById(reward.coupon)
|
||||||
couponMap.set(coupon.id, coupon)
|
couponMap.set(coupon.id, coupon)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user