Update __init__.py

pull/624/head
Mr Chen 8 months ago
parent bd85e418bc
commit 395bf3aa5a
  1. 9
      route/__init__.py

@ -269,9 +269,12 @@ def webhook():
if not os.path.exists(wh_install_path): if not os.path.exists(wh_install_path):
return mw.returnJson(False, '请先安装WebHook插件!') return mw.returnJson(False, '请先安装WebHook插件!')
sys.path.append('plugins/webhook') try:
import index sys.path.append(os.getcwd() + "/plugins/webhook")
return index.runShellArgs(input_args) import index
return index.runShellArgs(input_args)
except Exception as e:
return 'error'
@app.route('/close') @app.route('/close')

Loading…
Cancel
Save