Explorar el Código

Merge branch 'bugfix_03_13_admin_liu'

rkljw hace 1 mes
padre
commit
0bb15cba07
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/JsonRpc/NewsService.php

+ 1 - 1
app/JsonRpc/NewsService.php

@@ -225,7 +225,7 @@ class NewsService implements NewsServiceInterface
             })
             ->leftJoin('category', 'article.catid', 'category.id')
             ->select("article.*", "category.name as category_name")
-            ->orderBy("article.id", "desc")
+            ->orderBy("article.updated_at", "desc")
             ->limit($data['pageSize'])
             ->offset(($data['page'] - 1) * $data['pageSize'])->get();
         $count = Article::where($where)->whereNotIn('article.status', [404])