Jelajahi Sumber

修改b端:获取资讯列表的接口

FengR 9 bulan lalu
induk
melakukan
7fb7061cd0
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/JsonRpc/NewsService.php

+ 2 - 2
app/JsonRpc/NewsService.php

@@ -483,8 +483,8 @@ class NewsService implements NewsServiceInterface
       ->offset(($data['page'] - 1) * $data['pageSize'])
       ->get();
     $data = [
-      'rows' => $rep->items(),
-      'count' => $rep->total(),
+      'rows' => $rep->toArray(),
+      'count' => $count,
     ];
     // 执行查询
     $endTime = microtime(true);