From 129e04d25b5d6b3fee7024b66e3d0d0e05ee16f5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Nov 2019 19:44:36 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/ServerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/ServerController.php b/app/Http/Controllers/Admin/ServerController.php index 7c35141a..78d502e1 100755 --- a/app/Http/Controllers/Admin/ServerController.php +++ b/app/Http/Controllers/Admin/ServerController.php @@ -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()