fix: 修复v2ray、Trojan旧版接口获取用户列表失败的问题

This commit is contained in:
xboard committed 2023-12-16 08:05:09 +08:00
1 parent 211b541819
commit 3e5861b1ee
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -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)