This commit is contained in:
root 2019-11-18 18:25:19 +08:00
parent 7280459f17
commit 049faeee1f
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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)) {