From c8f614dc55233400de41e6d55e32daa65b1b6ae3 Mon Sep 17 00:00:00 2001 From: "zhangf@suq.cn" Date: Tue, 8 Sep 2026 10:15:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(model):=20=E4=BF=AE=E6=AD=A3getAllCustomArr?= =?UTF-8?q?ayData=E6=96=B9=E6=B3=95=E7=9A=84=E9=BB=98=E8=AE=A4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将默认排序从'sort asc,id desc'更改为'id desc' - 保持其他参数不变包括where条件、字段选择、关联查询和偏移量 - 更新缓存键生成逻辑以反映新的排序默认值 --- app/model/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model/Model.php b/app/model/Model.php index aec17d5..6f9f60d 100644 --- a/app/model/Model.php +++ b/app/model/Model.php @@ -101,7 +101,7 @@ class Model extends BaseModel return dataReturn($this->sucCode,$this->getMsg,$res); } - public function getAllCustomArrayData($where,$order='sort asc,id desc',$field="*",$with=[],$offset=0): array + public function getAllCustomArrayData($where,$order='id desc',$field="*",$with=[],$offset=0): array { $key = md5($this->className . json_encode([$where,$order,$field,$with]));