Authored by yangyang

修改ajax请求品牌收藏

... ... @@ -120,12 +120,13 @@ class IndexController extends WebAction
return;
}
$uid = $this->post('uid');
$brandId = $this->post('brandId');
if ($uid && $brandId) {
//调用接口收藏或取消收藏
$result = FavoriteData::changeFavoriteBrand($uid, $brandId);
if (isset($result['code']) && $result['code'] == 200) {
$this ->echoJson($result['message']);
$this ->echoJson($result);
}
}
}
... ...