...
|
...
|
@@ -125,14 +125,14 @@ class ZjCartController extends HomeBaseController |
|
|
return false;
|
|
|
}
|
|
|
foreach ($data as $k => $item) {
|
|
|
if (session('cart.id') == null && session('goods.id') != null) {
|
|
|
$item['num'] = 1;
|
|
|
}
|
|
|
if ($item['caid'] == 2) {
|
|
|
$item['integral'] = '购买可获得' . $item['price'] * $item['num'] * 2 . '积分';
|
|
|
} else {
|
|
|
$item['integral'] = '该商品无积分奖励';
|
|
|
}
|
|
|
if (session('cart.id') == null && session('goods.id') != null) {
|
|
|
$item['num'] = 1;
|
|
|
}
|
|
|
$total_num += $item['num'];
|
|
|
$item['sum_price'] = $item['price'] * $item['num'];
|
|
|
$whole += $item['sum_price'];
|
...
|
...
|
|