You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
785 B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
6 years ago
7 years ago
7 years ago
7 years ago
6 years ago
7 years ago
  1. <?php
  2. namespace App\Http\Controllers\Admin;
  3. class IndexController extends BaseController
  4. {
  5. public function __construct()
  6. {
  7. parent::__construct();
  8. }
  9. public function index()
  10. {
  11. $leftmenu = new \App\Http\Model\Menu();
  12. $data['menus'] = $leftmenu::getPermissionsMenu($_SESSION['admin_info']['role_id']);
  13. return view('admin.index.index', $data);
  14. }
  15. public function welcome()
  16. {
  17. return view('admin.index.welcome');
  18. }
  19. //更新配置
  20. public function upconfig()
  21. {
  22. cache()->forget('sysconfig'); //删除缓存
  23. success_jump('更新成功');
  24. }
  25. //更新缓存
  26. public function upcache()
  27. {
  28. cache()->forget('sysconfig'); //删除缓存
  29. dir_delete(storage_path().'/framework/cache/data/');
  30. success_jump('更新成功');
  31. }
  32. }