From 2664da66282088a924e942aa7e0423e5779d24dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Fri, 12 Sep 2025 18:00:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E7=B1=BB=E5=9E=8B=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8A=A0=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/controller/Index.php b/application/api/controller/Index.php index 2aab603..1cf658e 100644 --- a/application/api/controller/Index.php +++ b/application/api/controller/Index.php @@ -29,7 +29,7 @@ class Index extends BaseCom //房间类型列表 public function room_type_list() { - $list = db::name('vs_room_type')->where('status', 1)->field('id,type_name as label_name')->select(); + $list = db::name('vs_room_type')->where('status', 1)->field('id,type_name as label_name')->order('sort asc')->select(); //给前面添加一组数据 array_unshift($list, ['id' => -1, 'label_name' => '热门']); return V(1, '获取成功', $list);