소스 검색

修改1111

15313670163 2 주 전
부모
커밋
19120040fe
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/JsonRpc/NewsService.php

+ 2 - 2
app/JsonRpc/NewsService.php

@@ -486,7 +486,7 @@ class NewsService implements NewsServiceInterface
         ->orderBy("updated_at", "desc")
         ->limit($data['pageSize'])
         ->offset(($data['page'] - 1) * $data['pageSize'])
-        ->get()->all()
+        ->get()
         ->map(function ($article ) use ($data) {
             $catid = $article->catid ?? 0;
             $pinyin = '';
@@ -866,7 +866,7 @@ class NewsService implements NewsServiceInterface
             ->orderBy("updated_at", "desc")
             ->offset(($data['page'] - 1) * $data['pageSize'])
             ->limit($data['pageSize'])
-            ->get()->all()
+            ->get()
             ->map(function ($article ) use ($data) {
                 $catid = $article->catid ?? 0;
                 $pinyin = '';