diff --git a/app/Service/CouponService.php b/app/Service/CouponService.php index 5efe903..0d77114 100644 --- a/app/Service/CouponService.php +++ b/app/Service/CouponService.php @@ -161,11 +161,11 @@ class CouponService implements CouponServiceInterface $available = []; $notAvailable = []; - if ($this->empty($orderAmount) || $this->empty($userId)) { - return $this->success([ + if (empty($orderAmount) || empty($userId)) { + return [ 'available' => $available, 'not_available' => array_values($notAvailable) - ]); + ]; } // 获取用户优惠券