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)
->orderBy('sort', 'ASC')
->get();
return response([
'data' => $plan

View File

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