mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +08:00
update
This commit is contained in:
parent
91393cba71
commit
467ca343be
@ -15,7 +15,9 @@ 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++) {
|
||||||
$server[$i]['tags'] = json_decode($server->tags);
|
if (!empty($server[$i]['tags'])) {
|
||||||
|
$server[$i]['tags'] = json_decode($server->tags);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return response([
|
return response([
|
||||||
'data' => $server
|
'data' => $server
|
||||||
|
Loading…
Reference in New Issue
Block a user