Index.php 554 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace app\adminall\controller;
  3. use app\BaseController;
  4. use app\model\User;
  5. use app\model\Admin;
  6. use think\facade\View;
  7. use think\facade\Session;
  8. class Index extends BaseController
  9. {
  10. /**
  11. * 面板
  12. */
  13. public function index()
  14. {
  15. return View::fetch();
  16. }
  17. /*
  18. * 首页数据中心
  19. */
  20. public function welcome()
  21. {
  22. return View::fetch();
  23. }
  24. /**
  25. * 退出登陆
  26. */
  27. public function logout()
  28. {
  29. Session::clear();
  30. return redirect(url('login/index'));
  31. }
  32. }