Sfoglia il codice sorgente

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

FengR 9 mesi fa
parent
commit
7fb7061cd0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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);