🔀 Merge pull request #430

修复mirai adapter中上传相关api操作报错
This commit is contained in:
Ju4tCode 2021-07-08 09:27:36 +08:00 committed by GitHub
commit 53d98f3d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View File

@ -278,5 +278,29 @@
"desc": "用于让机器人撤回自己发出的消息",
"author": "MeetWq",
"repo": "https://github.com/MeetWq/nonebot-plugin-withdraw"
},
{
"id": "nonebot_plugin_pixivrank_search",
"link": "nonebot-plugin-pixivrank-search",
"name": "nonebot_plugin_pixivrank_search",
"desc": "基于RSSHUB阅读器的P站排行和P站搜图",
"author": "HibiKier",
"repo": "https://github.com/HibiKier/nonebot_plugin_pixivrank_search"
},
{
"id": "nonebot_plugin_russian",
"link": "nonebot-plugin-russian",
"name": "nonebot_plugin_russian",
"desc": "群内小游戏,使用金币赌注的俄罗斯轮盘",
"author": "HibiKier",
"repo": "https://github.com/HibiKier/nonebot_plugin_russian"
},
{
"id": "nonebot_plugin_statistical",
"link": "nonebot-plugin-statistical",
"name": "nonebot_plugin_statistical",
"desc": "一个简单的功能调用统计以及可视化插件",
"author": "HibiKier",
"repo": "https://github.com/HibiKier/nonebot_plugin_statistical"
}
]

View File

@ -95,6 +95,7 @@ class SessionManager:
"""
files = {k: v for k, v in params.items() if isinstance(v, BytesIO)}
form = {k: v for k, v in params.items() if k not in files}
form['sessionKey'] = self.session_key
response = await self.client.post(
path,
data=form,