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
40 lines
848 B
<?php
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Http\Controllers\Admin\CommonController;
|
|
|
|
class IndexController extends CommonController
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$leftmenu = new \App\Http\Model\Menu();
|
|
$data['menus'] = $leftmenu::getPermissionsMenu($_SESSION['admin_user_info']['role_id']);
|
|
|
|
return view('admin.index.index', $data);
|
|
}
|
|
|
|
public function welcome()
|
|
{
|
|
return view('admin.index.welcome');
|
|
}
|
|
|
|
//更新配置
|
|
public function upconfig()
|
|
{
|
|
cache()->forget('sysconfig'); //删除缓存
|
|
success_jump('更新成功!');
|
|
}
|
|
|
|
//更新缓存
|
|
public function upcache()
|
|
{
|
|
cache()->forget('sysconfig'); //删除缓存
|
|
dir_delete(storage_path().'/framework/cache/data/');
|
|
success_jump('更新成功!');
|
|
}
|
|
}
|