From 5c33c94d512ff7b8bfa25a5c4e7b5973895eb82d Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 21 May 2025 09:08:55 +0800 Subject: [PATCH] =?UTF-8?q?debug=20=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/video_man/main.py | 3 +-- wechat_ipad/client/message.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/video_man/main.py b/plugins/video_man/main.py index 9f18469..1799737 100644 --- a/plugins/video_man/main.py +++ b/plugins/video_man/main.py @@ -112,8 +112,7 @@ class VideoManPlugin(MessagePluginInterface): return False, "视频下载失败" # 发送视频 - result = await self.bot.send_video_message((roomid if roomid else sender), Path(file_abspath), - Path(first_frame)) + result = await self.bot.send_video_message((roomid if roomid else sender), Path(file_abspath)) self.LOG.info(f"发送视频结果: {result}") return True, "发送成功" diff --git a/wechat_ipad/client/message.py b/wechat_ipad/client/message.py index da1ee1e..57f2af4 100644 --- a/wechat_ipad/client/message.py +++ b/wechat_ipad/client/message.py @@ -251,7 +251,7 @@ class MessageMixin(WechatAPIClientBase): self.logging.info("开始发送视频: 对方wxid:{} 视频base64略 图片base64略 预计耗时:{}秒", wxid, predict_time) async with aiohttp.ClientSession() as session: - json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Base64": vid_base64, "ImageBase64": image_base64, + json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Base64": vid_base64, "ImageBase64": "data:image/;base64"+image_base64, "PlayLength": duration} async with session.post(f'http://{self.ip}:{self.port}/api/Msg/SendVideo', json=json_param) as resp: json_resp = await resp.json()