feat : chef name

This commit is contained in:
2025-04-11 15:50:31 +08:00
parent c2fcd229cf
commit 7013ba64ba

View File

@@ -185,7 +185,8 @@ 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'], 'sku_id' => $item['sku_id'],
'id' => $item['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'];