feat(webhook): add support for server_name field in WebhookEventInfo

This commit is contained in:
InfinityPacer
2024-10-10 22:07:03 +08:00
parent d2a613a441
commit 828e9ab886
5 changed files with 15 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ async def webhook_message(background_tasks: BackgroundTasks,
_: str = Depends(verify_apitoken)
) -> Any:
"""
Webhook响应配置请求中需要添加参数token=API_TOKEN&source=消息配置
Webhook响应配置请求中需要添加参数token=API_TOKEN&source=媒体服务器
"""
body = await request.body()
form = await request.form()
@@ -35,7 +35,7 @@ async def webhook_message(background_tasks: BackgroundTasks,
def webhook_message(background_tasks: BackgroundTasks,
request: Request, _: str = Depends(verify_apitoken)) -> Any:
"""
Webhook响应配置请求中需要添加参数token=API_TOKEN&source=消息配置
Webhook响应配置请求中需要添加参数token=API_TOKEN&source=媒体服务器
"""
args = request.query_params
background_tasks.add_task(start_webhook_chain, None, None, args)