code review by hf: do remove from cart count to int
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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'])) { |
-
Please register or login to post a comment