Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
flucout committed Sep 27, 2024
1 parent 25292b8 commit ba7e07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiki/files/linux/PluginLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba7e07f

Please sign in to comment.