feat : order info

This commit is contained in:
2025-03-24 09:57:28 +08:00
parent 47752f477a
commit 9860f3eab8

View File

@@ -143,7 +143,7 @@ class OrderInfoService extends BaseService
'title' => $skuList[$item['sku_id']]['title'] ?? '',
'unit_price' => $item['unit_price'],
'quantity' => $item['quantity'],
'price' => bcmul($item['unit_price'], $item['quantity'], 2),
'price' => bcmul((string)$item['unit_price'], (string)$item['quantity'], 2),
'chef_name' => $chefList[$spuList[$skuList[$item['sku_id']['spu_id']]['chef_id']]]['chinese_name'] ?? '',
];
$oneCopiesInfo['total_price'] = bcadd((string)$oneCopiesInfo['total_price'], bcmul((string)$item['unit_price'],(string)$item['quantity'],2), 2);