fix: openapi 产品接口取消desc输出
This commit is contained in:
@@ -35,7 +35,6 @@ class Product
|
||||
'name',
|
||||
'short_name',
|
||||
'cover_image',
|
||||
'desc',
|
||||
'deleted_at'
|
||||
])
|
||||
->where(function($query) use($params) {
|
||||
@@ -101,6 +100,7 @@ class Product
|
||||
])
|
||||
->withoutField([
|
||||
'language_id',
|
||||
'desc',
|
||||
'stock_qty',
|
||||
'seo_title',
|
||||
'seo_keywords',
|
||||
@@ -112,7 +112,7 @@ class Product
|
||||
->bypk($id)
|
||||
->hidden(['category_id'])
|
||||
->find();
|
||||
// dump($product);exit;
|
||||
|
||||
// 处理封面图
|
||||
if (!empty($product['cover_image']) && !str_starts_with($product['cover_image'], 'http')) {
|
||||
$product['cover_image'] = image_domain_concat($product['cover_image']);
|
||||
|
||||
Reference in New Issue
Block a user