From 567304eaac1058aa018e983d3235db5704c08d91 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Fri, 30 Jul 2021 15:15:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Merchant/Controllers/Unionpay/CouponController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Merchant/Controllers/Unionpay/CouponController.php b/app/Merchant/Controllers/Unionpay/CouponController.php index 3389e01..b6df174 100644 --- a/app/Merchant/Controllers/Unionpay/CouponController.php +++ b/app/Merchant/Controllers/Unionpay/CouponController.php @@ -55,7 +55,7 @@ class CouponController extends Controller ->when(!$start && $end, function ($query) use ($end) { $query->where('created_at', '<', $end); }) - ->where('status', UnionpayCoupon::STATUS_INIT) + ->where('status', UnionpayCoupon::STATUS_USED) ->latest() ->paginate(); @@ -113,7 +113,7 @@ class CouponController extends Controller ->when(!$start && $end, function ($query) use ($end) { $query->where('created_at', '<', $end); }) - ->where('status', UnionpayCoupon::STATUS_INIT) + ->where('status', UnionpayCoupon::STATUS_USED) ->latest() ->chunk(5000, function ($coupons) use ($handle) { foreach ($coupons as $index => $coupon) {