feat : order info

This commit is contained in:
2025-03-24 09:56:34 +08:00
parent 9c1f404313
commit 47752f477a

View File

@@ -146,7 +146,7 @@ class OrderInfoService extends BaseService
'price' => bcmul($item['unit_price'], $item['quantity'], 2),
'chef_name' => $chefList[$spuList[$skuList[$item['sku_id']['spu_id']]['chef_id']]]['chinese_name'] ?? '',
];
$oneCopiesInfo['total_price'] = bcadd($oneCopiesInfo['total_price'], bcmul($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'];
}