mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
add onetime plan
This commit is contained in:
parent
95c7c48cc7
commit
866fda84ed
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers\Server;
|
namespace App\Http\Controllers\Server;
|
||||||
|
|
||||||
|
use App\Services\ServerService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
@ -34,20 +35,8 @@ class DeepbworkController extends Controller
|
|||||||
abort(500, 'fail');
|
abort(500, 'fail');
|
||||||
}
|
}
|
||||||
Cache::put('server_last_check_at_' . $server->id, time());
|
Cache::put('server_last_check_at_' . $server->id, time());
|
||||||
$users = User::whereIn('group_id', json_decode($server->group_id))
|
$serverService = new ServerService();
|
||||||
->select([
|
$users = $serverService->getAvailableUsers(json_decode($server->group_id));
|
||||||
'id',
|
|
||||||
'email',
|
|
||||||
't',
|
|
||||||
'u',
|
|
||||||
'd',
|
|
||||||
'transfer_enable',
|
|
||||||
'enable',
|
|
||||||
'v2ray_uuid',
|
|
||||||
'v2ray_alter_id',
|
|
||||||
'v2ray_level'
|
|
||||||
])
|
|
||||||
->get();
|
|
||||||
$result = [];
|
$result = [];
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
$user->v2ray_user = [
|
$user->v2ray_user = [
|
||||||
|
Loading…
Reference in New Issue
Block a user