练歌房首页类型列表 修改房间类型

This commit is contained in:
2025-11-03 10:20:04 +08:00
parent df7a9a5d6c
commit 9e81410cee
3 changed files with 8 additions and 33 deletions

View File

@@ -32,6 +32,8 @@ 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' => -1, 'label_name' => '热门']);
//给后面添加一组数据
array_push($list, ['id' => -2, 'label_name' => '练歌']);
return V(1, '获取成功', $list);
}