注销流程改变
This commit is contained in:
@@ -1068,9 +1068,14 @@ class Room extends Model
|
|||||||
db::name('vs_room_visitor')->where(['room_id' => $room_id, 'user_id' => $user_id])->delete();
|
db::name('vs_room_visitor')->where(['room_id' => $room_id, 'user_id' => $user_id])->delete();
|
||||||
//房间的模式
|
//房间的模式
|
||||||
$res = model('api/Room')->get_room_label($room_id);
|
$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;
|
$apply_type = 0;
|
||||||
if($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)){
|
if($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)){
|
||||||
$apply_type = 1;
|
$apply_type = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user