rkljw преди 1 месец
родител
ревизия
a055e958e9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/JsonRpc/NewsService.php

+ 1 - 1
app/JsonRpc/NewsService.php

@@ -31,7 +31,7 @@ class NewsService implements NewsServiceInterface
      */
     public function getCategoryList(array $data): array
     {
-        $rep = Category::select("category.*")->orderBy('category.updated_at',"asc")->get();
+        $rep = Category::select("category.*")->orderBy('category.updated_at',"desc")->get();
         if (empty($rep)) {
             return Result::error("没有导航池数据");
         }