From ba7e07f18a715e839f66a959276df385f1ee34c6 Mon Sep 17 00:00:00 2001 From: flucout Date: Fri, 27 Sep 2024 13:50:20 +0800 Subject: [PATCH] update --- wiki/files/linux/PluginLoader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/files/linux/PluginLoader.py b/wiki/files/linux/PluginLoader.py index 9a58a7e..1790412 100644 --- a/wiki/files/linux/PluginLoader.py +++ b/wiki/files/linux/PluginLoader.py @@ -65,13 +65,13 @@ def plugin_run(plugin_name,def_name,args): if not hasattr(plugin_obj,def_name): return public.returnMsg(False,'在[%s]插件中找不到[%s]方法' % (plugin_name,def_name)) - if 'plugin_get_object' in args and args.plugin_get_object == 1: + if args is not None and 'plugin_get_object' in args and args.plugin_get_object == 1: return getattr(plugin_obj, def_name) # 执行方法 return getattr(plugin_obj,def_name)(args) else: - if 'plugin_get_object' in args and args.plugin_get_object == 1: + if args is not None and 'plugin_get_object' in args and args.plugin_get_object == 1: return None import panelPHP args.s = def_name