release
parent
296eea470e
commit
d4450dee61
|
|
@ -191,7 +191,7 @@ class CouponService
|
|||
* @param int $num
|
||||
* @return void
|
||||
*/
|
||||
public function sendCoupon(User $user, Coupon $coupon, int $num)
|
||||
public function sendCoupon(User $user, Coupon $coupon, int $num = 1)
|
||||
{
|
||||
// 如果优惠券数量有限制,需扣除优惠券库存
|
||||
if ($coupon->limit > 0) {
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class VipService
|
|||
case Vip::TIME_MONTH:
|
||||
$start->addMonths($num);
|
||||
break;
|
||||
case TIME_DAY:
|
||||
case Vip::TIME_DAY:
|
||||
$start->addDays($num);
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue