diff --git a/app/__init__.py b/app/__init__.py index b67943f..bc7d159 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -197,7 +197,7 @@ def create_app() -> Flask: def index(): return {"test": "ok"} - @app.route("/webhook", methods=["GET"]) + @app.route("/webhook", methods=["GET", "POST"]) def push_xbot_activity_bot(): # 解析请求体中的json数据 data = json.loads(request.data)