pref: Enhance TrafficFetch Performance and Optimize Code Structure

This commit is contained in:
xboard committed 2024-11-29 19:22:12 +08:00
1 parent 19b2cd968a
commit fed0972283
2 files changed
+11 -28

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ class ServerService
// 获取可用的用户列表
public static function getAvailableUsers($groupId): Collection
{
return \DB::table('v2_user')
return User::toBase()
->whereIn('group_id', $groupId)
->whereRaw('u + d < transfer_enable')
->where(function ($query) {