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);