소스 검색

1排序修改

cloud 1 개월 전
부모
커밋
279e8e0eb8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -116,7 +116,7 @@ class Index extends Api
     {
         $list = CapacityLoad::field('id,name,capacity,percentage')
             ->order('weigh', 'desc')
-            ->order('id', 'asc')
+            ->order('id', 'desc')
             ->select();
         $this->success('ok', collection($list)->toArray());
     }