From db88358eca64acd12536570d87d4d6283eeed63f Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 2 Aug 2025 15:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20webhook.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/endpoints/webhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/endpoints/webhook.py b/app/api/endpoints/webhook.py index c6705a17..7244072b 100644 --- a/app/api/endpoints/webhook.py +++ b/app/api/endpoints/webhook.py @@ -32,8 +32,8 @@ async def webhook_message(background_tasks: BackgroundTasks, @router.get("/", summary="Webhook消息响应", response_model=schemas.Response) -def webhook_message(background_tasks: BackgroundTasks, - request: Request, _: Annotated[str, Depends(verify_apitoken)]) -> Any: +async def webhook_message(background_tasks: BackgroundTasks, + request: Request, _: Annotated[str, Depends(verify_apitoken)]) -> Any: """ Webhook响应,配置请求中需要添加参数:token=API_TOKEN&source=媒体服务器名 """