feat : spu

This commit is contained in:
2025-07-24 09:49:00 +08:00
parent 408a2bfa2b
commit 4d0e3907b2
3 changed files with 17 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ use Hyperf\DbConnection\Model\Model;
* @property int $kitchen_id
* @property int $chef_id
* @property int $caterer_id
* @property int $image_id
* @property string $title
* @property string $sub_title
* @property int $category_id
@@ -85,7 +86,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','favorable'])
->select(['id','cycle_id','chef_id','title','title','sub_title','category_id','favorable','image_id'])
->get();
}