From 8ebea2ff90fd211dd3b906adb715eb68c7e5880f Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Fri, 21 Mar 2025 09:51:12 +0800 Subject: [PATCH] feat : coupon --- app/Model/Sku.php | 2 +- app/Model/Spu.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Model/Sku.php b/app/Model/Sku.php index 70b8bff..3ad02c5 100644 --- a/app/Model/Sku.php +++ b/app/Model/Sku.php @@ -73,7 +73,7 @@ class Sku extends Model ->where('is_del',GoodCode::SKU_IS_NO_DEL) ->where('saleable',GoodCode::LISTING) ->orderBy('sort') - ->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num']) + ->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num','is_add_staple_food']) ->get(); } diff --git a/app/Model/Spu.php b/app/Model/Spu.php index 00539e6..77eb3fd 100644 --- a/app/Model/Spu.php +++ b/app/Model/Spu.php @@ -83,7 +83,7 @@ class Spu extends Model ->where('type',$type) ->where('saleable',GoodCode::LISTING) ->orderBy('sort') - ->select(['id','cycle_id','chef_id','title','title','sub_title','category_id','is_add_staple_food']) + ->select(['id','cycle_id','chef_id','title','title','sub_title','category_id']) ->get(); } }