diff --git a/app/Http/Controllers/Admin/Server/TrojanController.php b/app/Http/Controllers/Admin/Server/TrojanController.php index 006d2709..e6d5a1a4 100644 --- a/app/Http/Controllers/Admin/Server/TrojanController.php +++ b/app/Http/Controllers/Admin/Server/TrojanController.php @@ -100,6 +100,7 @@ class TrojanController extends Controller public function copy(Request $request) { $server = ServerTrojan::find($request->input('id')); + $server->show = 0; if (!$server) { abort(500, '服务器不存在'); } diff --git a/app/Http/Controllers/Admin/Server/V2rayController.php b/app/Http/Controllers/Admin/Server/V2rayController.php index 52fc96e6..089a3cf2 100644 --- a/app/Http/Controllers/Admin/Server/V2rayController.php +++ b/app/Http/Controllers/Admin/Server/V2rayController.php @@ -129,6 +129,7 @@ class V2rayController extends Controller public function copy(Request $request) { $server = Server::find($request->input('id')); + $server->show = 0; if (!$server) { abort(500, '服务器不存在'); }