update set server copy show default

This commit is contained in:
Tokumeikoi 2020-06-18 17:39:29 +08:00
parent b6f2a034ec
commit a45f8e121d
2 changed files with 2 additions and 0 deletions

View File

@ -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, '服务器不存在');
}

View File

@ -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, '服务器不存在');
}