爵位支付 和防踢

This commit is contained in:
2025-11-10 14:40:50 +08:00
parent e96a8c8b4c
commit 94f87237fe
3 changed files with 28 additions and 0 deletions

View File

@@ -944,6 +944,13 @@ class RoomPit extends Model
return ['code' => 0, 'msg' => '您没有权限操作', 'data' => null];
}
}
//获取被踢用户的爵位信息
$user_jue_info = model('api/Nobility')->getUserNobilityInfo($accept_user_id);
foreach ($user_jue_info['power_list'] as $key => $value){
if($value['id'] == 7){
return ['code' => 0, 'msg' => '该用户已是'.$user_jue_info['nobility_name'].'爵位,不能踢', 'data' => null];
}
}
if(!$pit_number || $pit_number == 888){
$roomInfo = db::name('vs_room')->where('id',$room_id)->field('label_id,type_id')->find();