首次提交

This commit is contained in:
技术老胡
2024-08-21 11:25:57 +08:00
parent e5dc4d5b6b
commit 4eecbfcd3c
831 changed files with 308101 additions and 25 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace app\controller;
use app\BaseController;
use think\facade\View;
class UserController extends BaseController
{
protected $middleware = ['Auth' => ['except' => ['login']]];
// 用户中心
public function index()
{
return View::fetch();
}
// 登陆视图
public function login()
{
if (session('?islogin')) {
return redirect('/Console/index');
}
return View::fetch();
}
}