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)