Authored by hf

code review by hf: merge master code to develop

... ... @@ -63,6 +63,10 @@ class CartModel
// 调用接口获取购物车的数据
$cartData = CartData::cartData($uid, $shoppingKey);
// 当购物车为空时,用户也已经登录过, 再取一次
if (empty($cartData['data']) && is_numeric($uid) && !empty($shoppingKey)) {
$cartData = CartData::cartData(0, $shoppingKey);
}
// 处理普通购物车和预售购物车的数据
do {
... ...