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