2 Commits

Author SHA1 Message Date
flucout ba7e07f18a update 2 months ago
flucout 25292b8e34 update 2 months ago
  1. BIN
      public/install/src/panel6.zip
  2. BIN
      public/install/update/LinuxPanel-9.2.0.zip
  3. 4
      wiki/files/linux/PluginLoader.py

BIN
public/install/src/panel6.zip

BIN
public/install/update/LinuxPanel-9.2.0.zip

4
wiki/files/linux/PluginLoader.py

@ -65,13 +65,13 @@ def plugin_run(plugin_name,def_name,args):
if not hasattr(plugin_obj,def_name): if not hasattr(plugin_obj,def_name):
return public.returnMsg(False,'在[%s]插件中找不到[%s]方法' % (plugin_name,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)
# 执行方法 # 执行方法
return getattr(plugin_obj,def_name)(args) return getattr(plugin_obj,def_name)(args)
else: 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 return None
import panelPHP import panelPHP
args.s = def_name args.s = def_name

Loading…
Cancel
Save