mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 08:39:09 +08:00
Fix alterid
This commit is contained in:
parent
e030ed8d80
commit
2b5ef08fe0
@ -45,12 +45,11 @@ class PoseidonController extends Controller
|
|||||||
$user->v2ray_user = [
|
$user->v2ray_user = [
|
||||||
"uuid" => $user->uuid,
|
"uuid" => $user->uuid,
|
||||||
"email" => sprintf("%s@v2board.user", $user->uuid),
|
"email" => sprintf("%s@v2board.user", $user->uuid),
|
||||||
"alter_id" => $user->v2ray_alter_id,
|
"alter_id" => $server->alter_id,
|
||||||
"level" => $user->v2ray_level,
|
"level" => 0,
|
||||||
];
|
];
|
||||||
unset($user['uuid']);
|
unset($user['uuid']);
|
||||||
unset($user['v2ray_alter_id']);
|
unset($user['email']);
|
||||||
unset($user['v2ray_level']);
|
|
||||||
array_push($result, $user);
|
array_push($result, $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user