From a5d38c25329ced94c684bf187386b23eeeef8313 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Sat, 19 Sep 2020 06:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/CouponRecService.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Service/v3/Implementations/CouponRecService.php b/app/Service/v3/Implementations/CouponRecService.php index 7f74743..806b5f6 100644 --- a/app/Service/v3/Implementations/CouponRecService.php +++ b/app/Service/v3/Implementations/CouponRecService.php @@ -114,8 +114,7 @@ class CouponRecService implements CouponRecServiceInterface case 'unused': $builder = $builder->where([ ['lanzu_coupon.usable_end_time' ,'>', time()], - ['lanzu_coupon_receive.number_remain' ,'>', 0], - ['lanzu_coupon.status','=',1] + ['lanzu_coupon_receive.number_remain' ,'>', 0] ]) ->whereIn('lanzu_coupon_receive.status',[0,1]); break; @@ -124,8 +123,7 @@ class CouponRecService implements CouponRecServiceInterface break; case 'expired': $builder = $builder->where(function ($query) { - $query->where('lanzu_coupon.usable_end_time', '<', time()) - ->orWhere('lanzu_coupon.status', '<>', 1); + $query->where('lanzu_coupon.usable_end_time', '<', time()); }); break; }