From 9860f3eab80d2a16ec45d941f61c1f4733072654 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Mon, 24 Mar 2025 09:57:28 +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 c5ac514..a78c046 100644 --- a/app/Service/Api/Order/OrderInfoService.php +++ b/app/Service/Api/Order/OrderInfoService.php @@ -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);