Compare commits
2 Commits
20250724-0
...
20250724-0
| Author | SHA1 | Date | |
|---|---|---|---|
| bbcc0d054f | |||
| 0a1610fc42 |
@@ -96,7 +96,7 @@ class Sku extends Model
|
|||||||
->where('saleable',GoodCode::LISTING)
|
->where('saleable',GoodCode::LISTING)
|
||||||
// ->where('is_add_staple_food',GoodCode::IS_NOT_ADD_STAPLE_FOOD)
|
// ->where('is_add_staple_food',GoodCode::IS_NOT_ADD_STAPLE_FOOD)
|
||||||
->orderBy('sort')
|
->orderBy('sort')
|
||||||
->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num','is_add_staple_food','occupied','chef_id','origin_sku_id'])
|
->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num','is_add_staple_food','occupied','chef_id','origin_sku_id','sub_title'])
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -323,6 +323,7 @@ class SpuService extends BaseService
|
|||||||
$info['city_name'] = $this->systemCityModel->getCityNameById((int)$info['city_id']);
|
$info['city_name'] = $this->systemCityModel->getCityNameById((int)$info['city_id']);
|
||||||
$info['kitchen_name'] = $this->kitchenModel->getNameById((int)$info['kitchen_id']);
|
$info['kitchen_name'] = $this->kitchenModel->getNameById((int)$info['kitchen_id']);
|
||||||
// $info['chef_name'] = $this->chefModel->getChineseNameById((int)$info['chef_id']);
|
// $info['chef_name'] = $this->chefModel->getChineseNameById((int)$info['chef_id']);
|
||||||
|
$info['image_url'] = $this->getOssObjectById((int)$info['image_id']) ?? '';
|
||||||
$info['chef_name'] = '';
|
$info['chef_name'] = '';
|
||||||
$info['category_name'] = $this->categoryModel->getNameById((int)$info['category_id']);
|
$info['category_name'] = $this->categoryModel->getNameById((int)$info['category_id']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user