Showing
1 changed file
with
2 additions
and
1 deletions
@@ -120,12 +120,13 @@ class IndexController extends WebAction | @@ -120,12 +120,13 @@ class IndexController extends WebAction | ||
120 | return; | 120 | return; |
121 | } | 121 | } |
122 | $uid = $this->post('uid'); | 122 | $uid = $this->post('uid'); |
123 | + | ||
123 | $brandId = $this->post('brandId'); | 124 | $brandId = $this->post('brandId'); |
124 | if ($uid && $brandId) { | 125 | if ($uid && $brandId) { |
125 | //调用接口收藏或取消收藏 | 126 | //调用接口收藏或取消收藏 |
126 | $result = FavoriteData::changeFavoriteBrand($uid, $brandId); | 127 | $result = FavoriteData::changeFavoriteBrand($uid, $brandId); |
127 | if (isset($result['code']) && $result['code'] == 200) { | 128 | if (isset($result['code']) && $result['code'] == 200) { |
128 | - $this ->echoJson($result['message']); | 129 | + $this ->echoJson($result); |
129 | } | 130 | } |
130 | } | 131 | } |
131 | } | 132 | } |
-
Please register or login to post a comment