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.

32 lines
848 B

<?php
namespace app\system\controller\admin;
use app\auth\logic\Auth;
use app\BaseController;
use app\system\model\SystemConfig;
use think\App;
use think\facade\Request;
use think\facade\View;
class Base extends BaseController
{
public function __construct(App $app)
{
$auth_logic = new Auth();
$action_name = Request::action();
$controller_name = Request::controller();
$menu_data = $auth_logic->getMenu($controller_name,$action_name);
$config_model = new SystemConfig();
$config_info = $config_model->getOneData();
View::assign('config_info',$config_info);
View::assign('menu', $menu_data['menu']);
View::assign('group_name', $menu_data['group_name']);
View::assign('three_level', $menu_data['three_level']);
parent::__construct($app);
}
}