mirror of
https://github.com/v2board/v2board.git
synced 2025-03-13 14:14:42 +08:00
为前端REALIT配置增加详细内容
This commit is contained in:
parent
2eec113396
commit
bd2313282d
@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
|
|||||||
use App\Models\Plan;
|
use App\Models\Plan;
|
||||||
use App\Models\ServerGroup;
|
use App\Models\ServerGroup;
|
||||||
use App\Models\ServerVmess;
|
use App\Models\ServerVmess;
|
||||||
|
use App\Models\ServerVless;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
@ -70,6 +71,13 @@ class GroupController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$servers = ServerVless::all();
|
||||||
|
foreach ($servers as $server) {
|
||||||
|
if (in_array($request->input('id'), $server->group_id)) {
|
||||||
|
abort(500, '该组已被节点所使用,无法删除');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Plan::where('group_id', $request->input('id'))->first()) {
|
if (Plan::where('group_id', $request->input('id'))->first()) {
|
||||||
abort(500, '该组已被订阅所使用,无法删除');
|
abort(500, '该组已被订阅所使用,无法删除');
|
||||||
}
|
}
|
||||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user