- 在产品服务中新增 sale 字段用于存储销售信息 - 该字段包含产品的销售相关数据结构 - 为后续销售功能扩展提供数据支持
@@ -317,6 +317,7 @@ class ProductService extends AlibabaAgentBaseService
'price' => $minPrice,
'minPrice' => $minPrice,
'maxPrice' => $maxPrice,
+ 'sale' => $saleInfo,
'stock' => $saleInfo['amountOnSale'] ?? 0,
'unit' => $saleInfo['unit'] ?? '件',
'mainImage' => $mainImage,