...
|
...
|
@@ -167,9 +167,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'] * $v['num'];
|
|
|
$min_num += $v['price_num'] * $v['num'];
|
|
|
$total_price += $v['price'] * $v['num'];
|
|
|
}
|
|
|
$attach = [
|
|
|
'min_cash' => $min_cash,
|
...
|
...
|
|