AI 1 month ago
parent
commit
ab82120a1e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/JsonRpc/NewsService.php

+ 1 - 1
app/JsonRpc/NewsService.php

@@ -772,7 +772,7 @@ class NewsService implements NewsServiceInterface
             return Result::error("查询失败", 0);
         }
         //手动推荐文章
-        $commend_ids = $result['commend_ids'] ? json_decode($result['commend_ids']) : [];
+        $commend_ids = $result['commend_id'] ? json_decode($result['commend_id']) : [];
         $commendArticle = Article::where('commend_id', 'in', $commend_ids)
             ->where('status', 1)
             ->orderBy('updated_at', 'desc')