Authored by hf

code review by hf: do remove from cart count to int

@@ -168,7 +168,7 @@ class CartModel @@ -168,7 +168,7 @@ class CartModel
168 $result = array('code' => 400, 'message' => '出错啦~'); 168 $result = array('code' => 400, 'message' => '出错啦~');
169 169
170 // 处理sku 170 // 处理sku
171 - $sku_list = json_encode(array($sku => $count)); 171 + $sku_list = json_encode(array($sku => intval($count) ));
172 172
173 $remove = CartData::removeFromCart($uid, $sku_list, $shoppingKey); 173 $remove = CartData::removeFromCart($uid, $sku_list, $shoppingKey);
174 if ($remove && isset($remove['code'])) { 174 if ($remove && isset($remove['code'])) {