From 8bfce4f288420c1bdd1757cdded9c2bb27a093d5 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 21 Apr 2022 12:03:20 +0800 Subject: [PATCH] setter --- app/model/Area.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model/Area.php b/app/model/Area.php index 2484594..48a46ad 100644 --- a/app/model/Area.php +++ b/app/model/Area.php @@ -51,7 +51,7 @@ class Area extends Base // 获取列表 public static function getAllList(): Collection { - return self::order('id', 'asc') + return self::order(["sort"=>"desc","id"=>"desc"]) ->select(); } }