| | |
| | | foreach ($productList as &$item) { |
| | | // 商品单价 |
| | | $item['product_price'] = $item['product_sku']['product_price']; |
| | | $item['settlement_price'] = $item['product_sku']['settlement_price']; |
| | | // 商品购买数量 |
| | | $item['total_num'] = $params['product_num']; |
| | | $item['spec_sku_id'] = $item['product_sku']['spec_sku_id']; |
| | | // 商品购买总金额 |
| | | $item['total_price'] = helper::bcmul($item['product_price'], $params['product_num']); |
| | | // 商品总结算价 |
| | | $item['total_settlement_price'] = helper::bcmul($item['settlement_price'], $params['product_num']); |
| | | } |
| | | $supplierData[] = [ |
| | | 'shop_supplier_id' => $product['shop_supplier_id'], |