Update __init__.py

pull/624/head
Mr Chen 7 months ago
parent 5ab15341e4
commit 2e751bb3fb
  1. 3
      route/__init__.py

@ -248,6 +248,7 @@ def wellknow(val=None):
@app.route("/hook", methods=['POST', 'GET'])
sys.path.append(os.getcwd() + "/plugins/webhook")
def webhook():
# 仅针对webhook插件
@ -270,7 +271,7 @@ def webhook():
return mw.returnJson(False, '请先安装WebHook插件!')
try:
sys.path.append(os.getcwd() + "/plugins/webhook")
import webhook_index
return webhook_index.runShellArgs(input_args)
except Exception as e:

Loading…
Cancel
Save