code review by hf: merge master code to develop
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -63,6 +63,10 @@ class CartModel | @@ -63,6 +63,10 @@ class CartModel | ||
63 | 63 | ||
64 | // 调用接口获取购物车的数据 | 64 | // 调用接口获取购物车的数据 |
65 | $cartData = CartData::cartData($uid, $shoppingKey); | 65 | $cartData = CartData::cartData($uid, $shoppingKey); |
66 | + // 当购物车为空时,用户也已经登录过, 再取一次 | ||
67 | + if (empty($cartData['data']) && is_numeric($uid) && !empty($shoppingKey)) { | ||
68 | + $cartData = CartData::cartData(0, $shoppingKey); | ||
69 | + } | ||
66 | 70 | ||
67 | // 处理普通购物车和预售购物车的数据 | 71 | // 处理普通购物车和预售购物车的数据 |
68 | do { | 72 | do { |
-
Please register or login to post a comment