feat : statement

This commit is contained in:
2025-03-21 17:43:54 +08:00
parent 005fc4879a
commit dd6482086c

View File

@@ -125,6 +125,7 @@ class OrderInfoService extends BaseService
$imageId = !empty($skuInfo) && !empty(explode(',',$skuInfo['image_ids'])[0]) ? explode(',',$skuInfo['image_ids'])[0] : []; $imageId = !empty($skuInfo) && !empty(explode(',',$skuInfo['image_ids'])[0]) ? explode(',',$skuInfo['image_ids'])[0] : [];
$oneCopiesInfo['total_price'] = bcadd($oneCopiesInfo['total_price'], bcmul($item['unit_price'],(string)$item['quantity'],2), 2); $oneCopiesInfo['total_price'] = bcadd($oneCopiesInfo['total_price'], bcmul($item['unit_price'],(string)$item['quantity'],2), 2);
$oneCopiesInfo['total_quantity'] += $item['quantity']; $oneCopiesInfo['total_quantity'] += $item['quantity'];
$skuInfo['url'] = $imageList[$imageId]['url'] ?? '';
$oneCopiesInfo['sku_list'][] = $skuInfo; $oneCopiesInfo['sku_list'][] = $skuInfo;
$oneCopiesInfo['image_list'][] = $imageList[$imageId] ?? []; $oneCopiesInfo['image_list'][] = $imageList[$imageId] ?? [];