From 2885e6053c0e7fbfd6abd872daf158ca3ae73438 Mon Sep 17 00:00:00 2001 From: notnotype <=> Date: Sun, 7 Mar 2021 22:36:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20mah=20adapter=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=8E=A5=E5=8F=97=E5=A5=BD=E5=8F=8B=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nonebot/adapters/mirai/event/request.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/event/request.py b/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/event/request.py index 3bf82f01..3081b8b4 100644 --- a/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/event/request.py +++ b/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/event/request.py @@ -36,7 +36,8 @@ class NewFriendRequestEvent(RequestEvent): 'eventId': self.event_id, 'groupId': self.group_id, 'fromId': self.from_id, - 'operate': 0 + 'operate': 0, + 'message': '' }) async def reject(self, @@ -46,7 +47,7 @@ class NewFriendRequestEvent(RequestEvent): """ :说明: - 拒绝此人的好友申请 + 拒绝此人的好友申请 :参数: @@ -135,7 +136,7 @@ class BotInvitedJoinGroupRequestEvent(RequestEvent): """ :说明: - 通过这份被邀请入群申请 + 通过这份被邀请入群申请 :参数: @@ -153,7 +154,7 @@ class BotInvitedJoinGroupRequestEvent(RequestEvent): """ :说明: - 拒绝这份被邀请入群申请 + 拒绝这份被邀请入群申请 :参数: From ad70fac377e251768d8204973cc3c982236a7304 Mon Sep 17 00:00:00 2001 From: notnotype Date: Sun, 7 Mar 2021 14:41:18 +0000 Subject: [PATCH 2/2] :memo: update api docs --- docs/api/drivers/fastapi.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/docs/api/drivers/fastapi.md b/docs/api/drivers/fastapi.md index fba15c68..3b2f4f23 100644 --- a/docs/api/drivers/fastapi.md +++ b/docs/api/drivers/fastapi.md @@ -28,7 +28,7 @@ FastAPI 驱动框架设置,详情参考 FastAPI 文档 * **说明** - openapi.json 地址,默认为 None 即关闭 + `openapi.json` 地址,默认为 `None` 即关闭 @@ -43,7 +43,7 @@ FastAPI 驱动框架设置,详情参考 FastAPI 文档 * **说明** - swagger 地址,默认为 None 即关闭 + `swagger` 地址,默认为 `None` 即关闭 @@ -58,7 +58,22 @@ FastAPI 驱动框架设置,详情参考 FastAPI 文档 * **说明** - redoc 地址,默认为 None 即关闭 + `redoc` 地址,默认为 `None` 即关闭 + + + +### `fastapi_reload_dirs` + + +* **类型** + + `List[str]` + + + +* **说明** + + `debug` 模式下重载监控文件夹列表,默认为 uvicorn 默认值