|
@@ -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 = '';
|