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.

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