This commit is contained in:
root 2019-11-04 19:48:20 +08:00
parent 91393cba71
commit 467ca343be

View File

@ -15,8 +15,10 @@ class ServerController extends Controller
public function index (Request $request) { public function index (Request $request) {
$server = Server::get(); $server = Server::get();
for ($i = 0; $i < count($server); $i++) { for ($i = 0; $i < count($server); $i++) {
if (!empty($server[$i]['tags'])) {
$server[$i]['tags'] = json_decode($server->tags); $server[$i]['tags'] = json_decode($server->tags);
} }
}
return response([ return response([
'data' => $server 'data' => $server
]); ]);