12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\adminall\controller;
- use app\BaseController;
- use app\model\User;
- use app\model\Admin;
- use think\facade\View;
- use think\facade\Session;
- class Index extends BaseController
- {
- /**
- * 面板
- */
- public function index()
- {
- return View::fetch();
- }
- /*
- * 首页数据中心
- */
- public function welcome()
- {
- return View::fetch();
- }
- /**
- * 退出登陆
- */
- public function logout()
- {
- Session::clear();
- return redirect(url('login/index'));
- }
- }
|