From ec91199fc5203b42fcd516754fe63078224612cb Mon Sep 17 00:00:00 2001 From: 何书鹏 <heshupeng@bronet.cn> Date: Wed, 26 Jan 2022 17:22:11 +0800 Subject: [PATCH] 分类排序 --- application/api/controller/Classification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/controller/Classification.php b/application/api/controller/Classification.php index 61b531c..fd2956c 100644 --- a/application/api/controller/Classification.php +++ b/application/api/controller/Classification.php @@ -48,7 +48,7 @@ class Classification extends Api { $id = $this->request->post('id',0); $model = new Category(); - $list = $model->field('id,name')->order('weight desc')->select(); + $list = $model->field('id,name')->order('weigh desc')->select(); foreach ($list as $key => &$value){ $value['is_myself'] = $value['id']==$id?'1':'0'; } -- libgit2 0.24.0