diff --git a/application/service/PluginsAdminService.php b/application/service/PluginsAdminService.php index 5b4559be7..35e9bdda2 100755 --- a/application/service/PluginsAdminService.php +++ b/application/service/PluginsAdminService.php @@ -1460,6 +1460,13 @@ php; SqlconsoleService::Implement(['sql'=>file_get_contents($sql_file)]); } + // 钩子部署 + $ret = self::PluginsHookDeployment(); + if($ret['code'] != 0) + { + return $ret; + } + // 插件事件回调 PluginsService::PluginsEventCall($plugins, 'Upgrade', $params); diff --git a/application/service/SystemUpgradeService.php b/application/service/SystemUpgradeService.php index 1a9c0c466..c2cf35c67 100644 --- a/application/service/SystemUpgradeService.php +++ b/application/service/SystemUpgradeService.php @@ -146,6 +146,7 @@ class SystemUpgradeService // 需要处理的文件 $handle_file_arr = [ 'update.sql', + 'power.sql', ]; while(($temp_resource = zip_read($resource)) !== false)