This commit is contained in:
Tokumeikoi 2020-04-21 00:22:05 +08:00
parent 94158cb6e3
commit 3f2c8266de
8 changed files with 8 additions and 7 deletions

View File

@ -21,6 +21,7 @@ class PlanController extends Controller
]); ]);
} }
$plan = Plan::where('show', 1) $plan = Plan::where('show', 1)
->orderBy('sort', 'ASC')
->get(); ->get();
return response([ return response([
'data' => $plan 'data' => $plan

View File

@ -21,7 +21,7 @@ class ServerController extends Controller
$userService = new UserService(); $userService = new UserService();
if ($userService->isAvailable($user)) { if ($userService->isAvailable($user)) {
$servers = Server::where('show', 1) $servers = Server::where('show', 1)
->orderBy('name') ->orderBy('sort', 'ASC')
->get(); ->get();
foreach ($servers as $item) { foreach ($servers as $item) {
$groupId = json_decode($item['group_id']); $groupId = json_decode($item['group_id']);

View File

@ -1,4 +1,4 @@
window.v2board = { window.settings = {
// 站点标题 // 站点标题
title: 'V2Board', title: 'V2Board',
// API // API

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
window.v2board = { window.settings = {
// 站点标题 // 站点标题
title: 'V2Board', title: 'V2Board',
// 站点描述 // 站点描述

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,400i,600,700"> --> <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,400i,600,700"> -->
<script>window.routerBase = "/";</script> <script>window.routerBase = "/";</script>
<script> <script>
window.v2board = { window.settings = {
title: '{{$title}}', title: '{{$title}}',
theme: { theme: {
sidebar: '{{$theme_sidebar}}', sidebar: '{{$theme_sidebar}}',

View File

@ -11,7 +11,7 @@
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,400i,600,700"> --> <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,400i,600,700"> -->
<script>window.routerBase = "/";</script> <script>window.routerBase = "/";</script>
<script> <script>
window.v2board = { window.settings = {
title: '{{$title}}', title: '{{$title}}',
theme: { theme: {
sidebar: '{{$theme_sidebar}}', sidebar: '{{$theme_sidebar}}',