mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -15,7 +15,7 @@ class ClientController extends Controller | ||||
|         $user = $request->user; | ||||
|         $server = []; | ||||
|         if ($user->expired_at > time()) { | ||||
|           $servers = Server::all(); | ||||
|           $servers = Server::where('show', 1)->get(); | ||||
|           foreach ($servers as $item) { | ||||
|               $groupId = json_decode($item['group_id']); | ||||
|               if (in_array($user->group_id, $groupId)) { | ||||
|   | ||||
| @@ -95,7 +95,7 @@ class UserController extends Controller | ||||
|                 abort(500, '订阅计划不存在'); | ||||
|             } | ||||
|             if ($user->expired_at > time()) { | ||||
|                 $servers = Server::all(); | ||||
|                 $servers = Server::where('show', 1)->get(); | ||||
|                 foreach ($servers as $item) { | ||||
|                     $groupId = json_decode($item['group_id']); | ||||
|                     if (in_array($user->group_id, $groupId)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user