|
|
|
@ -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) |
|
|
|
]); |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
|
// 获取用户优惠券
|
|
|
|
|