title = '系统模块管理'; $this->modules = ModuleService::instance()->change(); $this->fetch(); } /** * 安装模块代码 * @auth true */ public function install() { $data = $this->_vali(['name.require' => '模块名称不能为空!']); [$state, $message] = ModuleService::instance()->install($data['name']); $state ? $this->success($message) : $this->error($message); } }