From 684391f7e251dadaa9a483129f0e6b028c61b5bc Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Wed, 3 Apr 2024 10:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=96=B0=E4=BA=BA?= =?UTF-8?q?=E5=88=B8=E6=9F=A5=E8=AF=A2=E6=97=B6=E9=94=99=E8=AF=AF=20=20?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=9D=9E=E6=96=B0=E4=BA=BA=E5=88=B8=E4=B9=9F?= =?UTF-8?q?=E8=A2=AB=E8=B5=A0=E9=80=81=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/dao/store/coupon/StoreCouponDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/dao/store/coupon/StoreCouponDao.php b/app/common/dao/store/coupon/StoreCouponDao.php index d78973d..9758930 100644 --- a/app/common/dao/store/coupon/StoreCouponDao.php +++ b/app/common/dao/store/coupon/StoreCouponDao.php @@ -85,7 +85,7 @@ class StoreCouponDao extends BaseDao { $query = StoreCoupon::getDB() ->where('status', 1) - ->when(isset($where['send_type']) && $where['send_type'] !== '', function ($query) use ($send_type) { + ->when(!is_null($send_type), function ($query) use ($send_type) { $query->where('send_type', $send_type); }) ->where('is_del', 0)