From 29a46d8ae9ed801c89ca062c68cc0a539a526cbd Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Wed, 16 Sep 2020 15:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/CouponRecService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/CouponRecService.php b/app/Service/v3/Implementations/CouponRecService.php index a23f09b..fe48062 100644 --- a/app/Service/v3/Implementations/CouponRecService.php +++ b/app/Service/v3/Implementations/CouponRecService.php @@ -114,7 +114,8 @@ class CouponRecService implements CouponRecServiceInterface case 'unused': $builder = $builder->where([ ['lanzu_coupon.usable_end_time' ,'>', time()], - ['lanzu_coupon_receive.number_remain' ,'>', 0] + ['lanzu_coupon_receive.number_remain' ,'>', 0], + ['lanzu_coupon.status','=',1] ]) ->whereIn('lanzu_coupon_receive.status',[0,1]); break;