首页 房间标签重新排序

This commit is contained in:
2025-12-07 16:38:42 +08:00
parent e2e27e386d
commit bc60c3b9b9

View File

@@ -32,7 +32,7 @@ class Index extends BaseCom
$list = db::name('vs_room_type')->where(['status' => 1, 'deletetime' => 0])->field('id,type_name as label_name')->order('sort asc')->select();
//给前面面添加一组数据
array_unshift($list, ['id' => -2, 'label_name' => '练歌']);
array_unshift($list, ['id' => -2, 'label_name' => '练歌']);
//给前面添加一组数据
array_unshift($list, ['id' => -1, 'label_name' => '热门']);
return V(1, '获取成功', $list);