From 406a3d17b5821f5514cce96d05302487268610a1 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Tue, 13 Sep 2022 10:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E9=99=90=E5=88=B6?= =?UTF-8?q?=20is=5Fenable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/CouponRange.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Models/CouponRange.php b/app/Models/CouponRange.php index 23fa4bf5..d779963c 100644 --- a/app/Models/CouponRange.php +++ b/app/Models/CouponRange.php @@ -14,6 +14,10 @@ class CouponRange extends Model public const TYPE_CATEGORY = 1; public const TYPE_PRODUCT = 2; + protected $attributes = [ + 'is_enable' => 1 + ]; + /** * 仅查询可用的券规则 */