...
|
...
|
@@ -134,7 +134,7 @@ class ZjCartController extends HomeBaseController |
|
|
$item['num'] = 1;
|
|
|
}
|
|
|
$total_num += $item['num'];
|
|
|
$total_price += $item['price'] * $item['num'];
|
|
|
$item['sum_price'] = $item['price'] * $item['num'];
|
|
|
$data[$k] = $item;
|
|
|
}
|
|
|
$address = Db::name('zj_user_place')
|
...
|
...
|
@@ -166,9 +166,9 @@ class ZjCartController extends HomeBaseController |
|
|
$min_num = 0; //该笔订单所需的最低积分
|
|
|
$total_price = 0; //该笔订单所需的总价格
|
|
|
foreach ($data as $k => $v) {
|
|
|
$min_cash+=$v['price_cash'];
|
|
|
$min_num+=$v['price_num'];
|
|
|
$total_price+=$v['price'];
|
|
|
$min_cash += $v['price_cash'];
|
|
|
$min_num += $v['price_num'];
|
|
|
$total_price += $v['price'];
|
|
|
}
|
|
|
$attach = [
|
|
|
'min_cash' => $min_cash,
|
...
|
...
|
|