project = Maze::input('key'); $this->type = Maze::input('type', 'config'); $config = Maze::load('manage/project.get'); if(isset($config[$this->project])) { $this->config = $config[$this->project]; } } /** * index * * @return mixed */ public function index() { # 读取当前的service $view = View::getInstance('home', $this->config['path'], $this->project); $content = $view->runing(); $config = $view->result(); if(strpos($content, '') >= 0) { $content = str_replace('', Visual::tool() . '', $content); } else { $content = $content . Visual::tool(); } return $content; } }