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