删除插件会删除附件修复

This commit is contained in:
gongfuxiang 2022-02-24 17:35:35 +08:00
parent ecf137039d
commit 011736101d

View File

@ -468,15 +468,19 @@ class PluginsAdminService
}
}
// 删除数据库附件
ResourcesService::AttachmentPathTypeDelete('plugins_'.$plugins);
// 删除应用文件
self::PluginsResourcesDelete($plugins, $is_delete_data);
// 删除数据
if($is_delete_data === true)
{
// 删除数据库附件
ResourcesService::AttachmentPathTypeDelete('plugins_'.$plugins);
}
// 插件事件回调
PluginsService::PluginsEventCall($plugins, 'Delete', $params);
// 删除应用文件
self::PluginsResourcesDelete($plugins, $is_delete_data);
return DataReturn('删除成功');
}
return $ret;