소스 검색

Merge branch 'bugfix_03_13_admin_liu'

rkljw 1 개월 전
부모
커밋
2fde2b0ac6
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("没有导航池数据");
         }