From bb0d85f15eebdd6cb1600c3dea5893b2eb7438b2 Mon Sep 17 00:00:00 2001 From: Devil Date: Thu, 6 May 2021 10:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=9B=B4=E6=96=B0+=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=9B=B4=E6=96=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/PluginsAdminService.php | 7 +++++++ application/service/SystemUpgradeService.php | 1 + 2 files changed, 8 insertions(+) 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)