This commit is contained in:
root 2019-11-04 19:44:36 +08:00
parent bf28f4bc4b
commit 129e04d25b

View File

@ -33,7 +33,7 @@ class ServerController extends Controller
$server->port = $request->input('port');
$server->server_port = $request->input('server_port');
$server->tls = $request->input('tls');
$server->tags = json_encode($request->input('tags'));
$server->tags = json_encode($request->input('tags') ? $request->input('tags') : []);
$server->rate = $request->input('rate');
return response([
'data' => $server->save()