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 + ]; + /** * 仅查询可用的券规则 */