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(); } }