feat : chef name

This commit is contained in:
2025-04-10 17:43:38 +08:00
parent 0fc95607ae
commit 608b2ec7cb

View File

@@ -185,6 +185,7 @@ class OrderInfoService extends BaseService
'chef_name' => $chefList[$item['sku_id']]['chinese_name'] ?? '', 'chef_name' => $chefList[$item['sku_id']]['chinese_name'] ?? '',
'order_good_id' => $item['id'], 'order_good_id' => $item['id'],
'is_comment' => $item['is_comment'], 'is_comment' => $item['is_comment'],
'id' => $item['sku_id'],
]; ];
$oneCopiesInfo['total_price'] = bcadd((string)$oneCopiesInfo['total_price'], bcmul((string)$item['unit_price'],(string)$item['quantity'],2), 2); $oneCopiesInfo['total_price'] = bcadd((string)$oneCopiesInfo['total_price'], bcmul((string)$item['unit_price'],(string)$item['quantity'],2), 2);
$oneCopiesInfo['total_quantity'] += $item['quantity']; $oneCopiesInfo['total_quantity'] += $item['quantity'];