初始化提交
This commit is contained in:
35
app/manager/controller/Index.php
Normal file
35
app/manager/controller/Index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\manager\controller;
|
||||
|
||||
use app\manager\sys\RedisManager;
|
||||
use think\admin\Controller;
|
||||
use think\admin\service\AdminService;
|
||||
|
||||
|
||||
/**
|
||||
* 后台首页控制器
|
||||
*/
|
||||
class Index extends Controller
|
||||
{
|
||||
/**
|
||||
* 显示后台首页
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
|
||||
$userid = AdminService::getUserId();
|
||||
|
||||
// 获取实例
|
||||
$redis = RedisManager::getInstance();
|
||||
|
||||
|
||||
$this->assign("userid", $userid);
|
||||
|
||||
|
||||
$this->fetch();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user