From 2c1767b03cf0af06c224a4b641ad7741e82d1476 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Tue, 15 Apr 2025 17:57:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Attachment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/index/controller/Attachment.php b/app/index/controller/Attachment.php index bb339974..219a5983 100644 --- a/app/index/controller/Attachment.php +++ b/app/index/controller/Attachment.php @@ -31,6 +31,7 @@ class Attachment extends Common ->language($this->lang_id) ->parent(0) ->isShow(true) + ->order(['sort' => 'asc', 'id' => 'desc']) ->select(); View::assign('categorys', $categorys); @@ -46,6 +47,7 @@ class Attachment extends Common ]) ->language($this->lang_id) ->category($param['id']??null) + ->order(['sort' => 'asc', 'id' => 'desc']) ->paginate([ 'list_rows' => $param['size'], 'page' => $param['page'],