fix: openapi取消产品详情sku->sort字段输出
This commit is contained in:
@@ -75,7 +75,7 @@ class Product
|
|||||||
'params' => fn($query) => $query->field(['product_id', 'name', 'value'])
|
'params' => fn($query) => $query->field(['product_id', 'name', 'value'])
|
||||||
->hidden(['product_id']),
|
->hidden(['product_id']),
|
||||||
// 关联sku
|
// 关联sku
|
||||||
'skus' => fn($query) => $query->withoutField(['created_at', 'updated_at'])
|
'skus' => fn($query) => $query->withoutField(['sort', 'created_at', 'updated_at'])
|
||||||
->with([
|
->with([
|
||||||
'sku_attr' => fn($query) => $query->with('attr')->hidden(['sku_id', 'attr_id'])
|
'sku_attr' => fn($query) => $query->with('attr')->hidden(['sku_id', 'attr_id'])
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user