From 2b5ef08fe077afb0ce301b35066f52c748087016 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 Nov 2020 04:56:27 -0500 Subject: [PATCH] Fix alterid --- app/Http/Controllers/Server/PoseidonController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Server/PoseidonController.php b/app/Http/Controllers/Server/PoseidonController.php index 81e7c7a1..a64d0d91 100644 --- a/app/Http/Controllers/Server/PoseidonController.php +++ b/app/Http/Controllers/Server/PoseidonController.php @@ -45,12 +45,11 @@ class PoseidonController extends Controller $user->v2ray_user = [ "uuid" => $user->uuid, "email" => sprintf("%s@v2board.user", $user->uuid), - "alter_id" => $user->v2ray_alter_id, - "level" => $user->v2ray_level, + "alter_id" => $server->alter_id, + "level" => 0, ]; unset($user['uuid']); - unset($user['v2ray_alter_id']); - unset($user['v2ray_level']); + unset($user['email']); array_push($result, $user); }