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