修复购物车选择和全选按钮报错的bug(接收参数名错误导致)
Code Review By Rock Zhang
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -78,7 +78,7 @@ class IndexController extends AbstractAction | @@ -78,7 +78,7 @@ class IndexController extends AbstractAction | ||
78 | $result = array(); | 78 | $result = array(); |
79 | 79 | ||
80 | if ($this->isAjax()) { | 80 | if ($this->isAjax()) { |
81 | - $productId = $this->post('id', 0); | 81 | + $productId = $this->post('skuList', 0); |
82 | $uid = $this->getUid(true); | 82 | $uid = $this->getUid(true); |
83 | $shoppingKey = Helpers::getShoppingKeyByCookie(); | 83 | $shoppingKey = Helpers::getShoppingKeyByCookie(); |
84 | $result = CartModel::selectGoods($uid, $productId, $shoppingKey); | 84 | $result = CartModel::selectGoods($uid, $productId, $shoppingKey); |
-
Please register or login to post a comment