注销流程改变

This commit is contained in:
2025-09-25 00:05:02 +08:00
parent 2bdafc7308
commit 8ea06cd81d

View File

@@ -1068,9 +1068,14 @@ class Room extends Model
db::name('vs_room_visitor')->where(['room_id' => $room_id, 'user_id' => $user_id])->delete();
//房间的模式
$res = model('api/Room')->get_room_label($room_id);
if($res['code'] != 1){
$room_label = 1;
$room_type = 1;
}else{
$room_label = $res['data']['label_id'];
$room_type = $res['data']['type_id'];
}
$room_label = $res['data']['label_id'];
$room_type = $res['data']['type_id'];
$apply_type = 0;
if($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)){
$apply_type = 1;