DESKTOP-2STQMTS\Administrator 3 years ago
parent
commit
ba3d2b782e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/Http/Controllers/Api/NewsController.php

+ 4 - 2
app/Http/Controllers/Api/NewsController.php

@@ -44,10 +44,12 @@ class NewsController extends FrontController
             $cn_data[] = $cn;
             $en_data[] = $en;
         }
+        $cn_datas['items'] = $cn_data;
+        $en_datas['items'] = $en_data;
 
         return $this->apiResponseSuccess('获取列表成功', [
-            'cn' => $cn_data,
-            'en' => $en_data,
+            'cn' => $cn_datas,
+            'en' => $en_datas,
             'total' => $list->total(),
             'limit' => 10,
         ]);