房间的营业时间

This commit is contained in:
2026-01-20 09:42:30 +08:00
parent 07672be58b
commit a75b3b173a
2 changed files with 169 additions and 2 deletions

View File

@@ -487,4 +487,18 @@ class Room extends BaseCom
$reslut = model('Room')->task_jump_room_recommend($task_id);
return V(1, '成功', $reslut);
}
//设置房间的营业时间
public function set_room_business_time()
{
$room_id = input('room_id', 0);
$start_time = input('start_time', '00:00:00');
$end_time = input('end_time', '00:00:00');
if(!$room_id){
return V(0, '参数错误');
}
$reslut = model('Room')->set_room_business_time($this->uid, $room_id, $start_time, $end_time);
return V($reslut['code'], $reslut['msg'], $reslut['data']);
}
}