Authored by Rock Zhang

修复异步加载收藏的商品以及收藏的品牌错误的bug

... ... @@ -172,12 +172,6 @@ class UserModel
// 处理用户收藏的商品数据
if (isset($favProduct['data']) && !empty($favProduct['data']['product_list'])) {
if ($page > $favProduct['data']['page_total']) {
$result['end'] = true;
return $result;
}
$datas = array();
$product = array();
foreach ($favProduct['data']['product_list'] as $val) {
... ... @@ -195,6 +189,8 @@ class UserModel
}
!empty($datas) && $result['hasFavProduct'] = $datas;
} else if ($page > 1 && isset($favProduct['code']) && $favProduct['code'] === 500){
$result['end'] = true;
}
return $result;
... ...