From 47752f477a7c20fa856aaa4ae0a83bfafbc674f7 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Mon, 24 Mar 2025 09:56:34 +0800 Subject: [PATCH] feat : order info --- app/Service/Api/Order/OrderInfoService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/Api/Order/OrderInfoService.php b/app/Service/Api/Order/OrderInfoService.php index 1dca300..c5ac514 100644 --- a/app/Service/Api/Order/OrderInfoService.php +++ b/app/Service/Api/Order/OrderInfoService.php @@ -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']; }