优化首帧功能,如果没传入首帧,则提取首帧。

This commit is contained in:
liuwei
2025-05-29 16:55:22 +08:00
parent c1ea58e770
commit f8b75a3871

View File

@@ -276,7 +276,7 @@ class MessageMixin(WechatAPIClientBase):
# 打印预估时间300KB/s
predict_time = int(file_len / 1024 / 300)
self.logging.info("开始发送视频: 对方wxid:{} 视频base64略 图片base64略 预计耗时:{}", wxid, predict_time)
self.logging.debug(f"image{image};image_base64:{image_base64}")
async with aiohttp.ClientSession() as session:
json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Base64": "data:video/mp4;base64," + vid_base64,
"ImageBase64": "data:image/jpeg;base64," + image_base64,