|
@@ -75,7 +75,9 @@ public class CouponPkgServiceImpl extends ServiceImpl<CouponPkgMapper, CouponPkg
|
|
|
throw new ServiceException("券包下优惠券不存在");
|
|
|
}
|
|
|
for (CouponPkgItem couponPkgItem : couponPkgItems) {
|
|
|
- couponService.distribute(ticket, userId, couponPkgItem.getCouponId().toString());
|
|
|
+ for (int i = 0; i < couponPkgItem.getCouponNum(); i++) {
|
|
|
+ couponService.distribute(ticket, userId, couponPkgItem.getCouponId().toString());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|