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
38 lines
785 B
<?php
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
class IndexController extends BaseController
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$leftmenu = new \App\Http\Model\Menu();
|
|
$data['menus'] = $leftmenu::getPermissionsMenu($_SESSION['admin_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('更新成功');
|
|
}
|
|
}
|