feat : chef name

This commit is contained in:
2025-04-10 16:21:28 +08:00
parent a8523ed797
commit 89fbd03239
2 changed files with 8 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ class OrderInfoService extends BaseService
];
}
for ($i = 1; $i <= ($orderInfo['copies'] ?? 0); $i++) {
for ($i = 1; $i <= (count($newOrderSkuList) ?? 0); $i++) {
$oneCopiesInfo = [
'total_price' => '0.00',
'total_quantity' => 0,
@@ -166,6 +166,8 @@ class OrderInfoService extends BaseService
$addStapleFood['total_price'] = bcadd((string)$oneCopiesInfo['total_price'], bcmul((string)$item['unit_price'],(string)$item['quantity'],2), 2);
$addStapleFood['total_quantity'] += $item['quantity'];
$addStapleFood['url'] = $imageList[$imageId]['url'] ?? '';
$addStapleFood['title'] = $skuList[$item['sku_id']]['title'] ?? '';
$addStapleFood['unit_price'] = $item['unit_price'];
$breakFlag = 1;
continue;
}