setOutputPath(DataProvider::getDataFolder() . "output"); $packer->setOverride(); $packer->pack(); return true; } catch (ModulePackException $e) { Console::error($e->getMessage()); return false; } } /** * 解包模块 TODO * @param $module * @return array|false */ public static function unpackModule($module) { try { $packer = new ModuleUnpacker($module); return $packer->unpack(); } catch (ModulePackException $e) { Console::error($e->getMessage()); return false; } } }