|
@@ -1149,7 +1149,7 @@ class NewsService implements NewsServiceInterface
|
|
|
}
|
|
|
//手动推荐文章
|
|
|
$commend_ids = $result['commend_id'] ? json_decode($result['commend_id']) : [];
|
|
|
- $commendArticle = Article::whereIn('article.id', $commend_ids)
|
|
|
+ $commendArticle = Article::whereIn('id', $commend_ids)
|
|
|
->leftjoin('website_category', 'website_category.category_id', '=', 'article.catid')
|
|
|
->where('article.status', 1)
|
|
|
->select('article.id', 'article.title', 'article.catid', 'article.imgurl', 'article.hits', 'article.created_at', 'website_category.alias', 'website_category.alias_pinyin')
|