Explorar o código

1排序修改

cloud hai 1 mes
pai
achega
279e8e0eb8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());
     }