修复plaster详情页 相关文章无法显示点赞状态问题
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -164,7 +164,9 @@ class PlusstarController extends AbstractAction | @@ -164,7 +164,9 @@ class PlusstarController extends AbstractAction | ||
164 | 164 | ||
165 | // 相关文章 | 165 | // 相关文章 |
166 | foreach ($brandInfo['getArticleByBrand'] as $value) { | 166 | foreach ($brandInfo['getArticleByBrand'] as $value) { |
167 | - $data['ps']['infos'][] = Helpers::formatArticle($value, false, $isApp, false, $uid); | 167 | + $result = Helpers::formatArticle($value, false, $isApp, false, $uid); |
168 | + $result['like'] = $value['like']; | ||
169 | + $data['ps']['infos'][] = $result; | ||
168 | } | 170 | } |
169 | 171 | ||
170 | //jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP | 172 | //jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP |
-
Please register or login to post a comment