mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2026-05-07 19:07:42 +08:00
首次提交
This commit is contained in:
29
app/controller/ConsoleController.php
Normal file
29
app/controller/ConsoleController.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\controller;
|
||||
|
||||
use app\BaseController;
|
||||
use think\facade\View;
|
||||
|
||||
class ConsoleController extends BaseController
|
||||
{
|
||||
// 后台主页
|
||||
public function index()
|
||||
{
|
||||
return View::fetch();
|
||||
}
|
||||
// 管理菜单
|
||||
public function menu()
|
||||
{
|
||||
// 加载菜单配置
|
||||
$menu = \think\facade\Config::load("extendconfig/menu", 'extendconfig');
|
||||
return \json($menu);
|
||||
}
|
||||
// 首页仪表盘
|
||||
public function console()
|
||||
{
|
||||
return View::fetch();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user