Explorar el Código

1排序修改

cloud hace 1 mes
padre
commit
279e8e0eb8
Se han modificado 1 ficheros con 1 adiciones y 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')
         $list = CapacityLoad::field('id,name,capacity,percentage')
             ->order('weigh', 'desc')
             ->order('weigh', 'desc')
-            ->order('id', 'asc')
+            ->order('id', 'desc')
             ->select();
             ->select();
         $this->success('ok', collection($list)->toArray());
         $this->success('ok', collection($list)->toArray());
     }
     }