From ec92632af172c35d987bf0629cee93c9c7ac7a2b Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 21 May 2025 09:18:07 +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 --- wechat_ipad/client/message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wechat_ipad/client/message.py b/wechat_ipad/client/message.py index 917bf0b..32e2955 100644 --- a/wechat_ipad/client/message.py +++ b/wechat_ipad/client/message.py @@ -251,7 +251,8 @@ 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/jpeg;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()