房间密码

This commit is contained in:
2026-01-23 10:59:47 +08:00
parent 20c8a945bc
commit c8f1496250
2 changed files with 15 additions and 7 deletions

View File

@@ -39,8 +39,12 @@ class Room extends BaseCom
$room_cover = input('room_cover', '');
$room_intro = input('room_intro', '');
$room_background_id = input('room_background', '');
$password = input('password');
if($room_id <= 0){
return ['code' => 0, 'msg' => '房间不存在', 'data' => null];
}
$reslut = model('Room')->user_edit_room($this->uid, $room_id, $room_name, $room_cover, $room_intro,$room_background_id);
$reslut = model('Room')->user_edit_room($this->uid, $room_id, $room_name, $room_cover, $room_intro,$room_background_id,$password);
return V($reslut['code'], $reslut['msg'], $reslut['data']);
}
@@ -503,7 +507,7 @@ class Room extends BaseCom
}
//设置房间密码
//设置房间密码【改到编辑房间】暂时不用了
public function set_room_password()
{
$room_id = input('room_id', 0);