mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-05 12:40:52 +08:00
fix: 修复v2ray、Trojan旧版接口获取用户列表失败的问题
This commit is contained in:
@@ -49,7 +49,7 @@ class DeepbworkController extends Controller
|
||||
"alter_id" => 0,
|
||||
"level" => 0,
|
||||
];
|
||||
unset($user['uuid']);
|
||||
unset($user->uuid);
|
||||
array_push($result, $user);
|
||||
}
|
||||
$eTag = sha1(json_encode($result));
|
||||
|
||||
@@ -46,7 +46,7 @@ class TrojanTidalabController extends Controller
|
||||
$user->trojan_user = [
|
||||
"password" => $user->uuid,
|
||||
];
|
||||
unset($user['uuid']);
|
||||
unset($user->uuid);
|
||||
array_push($result, $user);
|
||||
}
|
||||
$eTag = sha1(json_encode($result));
|
||||
|
||||
@@ -12,6 +12,7 @@ use App\Models\ServerVmess;
|
||||
use App\Models\ServerTrojan;
|
||||
use App\Utils\CacheKey;
|
||||
use App\Utils\Helper;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class ServerService
|
||||
@@ -161,7 +162,7 @@ class ServerService
|
||||
}, $servers);
|
||||
}
|
||||
|
||||
public function getAvailableUsers($groupId)
|
||||
public function getAvailableUsers($groupId): Collection
|
||||
{
|
||||
return \DB::table('v2_user')
|
||||
->whereIn('group_id', $groupId)
|
||||
|
||||
Reference in New Issue
Block a user