系统更新+插件更新优化

feat/task1-c-wallet
Devil 2021-05-06 10:06:42 +08:00
parent 0060b92028
commit bb0d85f15e
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -146,6 +146,7 @@ class SystemUpgradeService
// 需要处理的文件
$handle_file_arr = [
'update.sql',
'power.sql',
];
while(($temp_resource = zip_read($resource)) !== false)