From 5118008ef9d9ee168fa5d16697c150f0f254a595 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Wed, 26 Aug 2020 09:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/CouponService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) - ]); + ]; } // 获取用户优惠券