mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 23:49:09 +08:00
update set server copy show default
This commit is contained in:
parent
b6f2a034ec
commit
a45f8e121d
@ -100,6 +100,7 @@ class TrojanController extends Controller
|
|||||||
public function copy(Request $request)
|
public function copy(Request $request)
|
||||||
{
|
{
|
||||||
$server = ServerTrojan::find($request->input('id'));
|
$server = ServerTrojan::find($request->input('id'));
|
||||||
|
$server->show = 0;
|
||||||
if (!$server) {
|
if (!$server) {
|
||||||
abort(500, '服务器不存在');
|
abort(500, '服务器不存在');
|
||||||
}
|
}
|
||||||
|
@ -129,6 +129,7 @@ class V2rayController extends Controller
|
|||||||
public function copy(Request $request)
|
public function copy(Request $request)
|
||||||
{
|
{
|
||||||
$server = Server::find($request->input('id'));
|
$server = Server::find($request->input('id'));
|
||||||
|
$server->show = 0;
|
||||||
if (!$server) {
|
if (!$server) {
|
||||||
abort(500, '服务器不存在');
|
abort(500, '服务器不存在');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user