6
0
Fork 0
release
panliang 2022-05-18 14:11:05 +08:00
parent 296eea470e
commit d4450dee61
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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: