fix: openapi 产品接口取消desc输出

This commit is contained in:
2025-07-05 11:49:49 +08:00
parent a0d53c6e0e
commit e1388c63b7

View File

@@ -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']);