mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2026-09-06 22:59:51 +08:00
首次提交
This commit is contained in:
26
app/controller/UserController.php
Normal file
26
app/controller/UserController.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user