chore(python): bump to v39.5.0.0

This commit is contained in:
Changhua 2025-04-18 00:45:55 +08:00
parent 17fc88ca0c
commit f90c4a7f65
3 changed files with 33 additions and 37 deletions

View File

@ -44,8 +44,8 @@ python -m grpc_tools.protoc --python_out=. --proto_path=../../../WeChatFerry/rpc
## 版本更新
### v39.4.5.0
* 修复发送 XML 功能
### v39.5.0.0
* 适配 `3.9.12.51`。
<details><summary>点击查看更多</summary>
@ -71,7 +71,7 @@ python -m grpc_tools.protoc --python_out=. --proto_path=../../../WeChatFerry/rpc
* 发送图片消息
* 发送文件消息
* 发送卡片消息
* 发送 XML
* 发送 XML 消息
* 发送 GIF 消息
* 拍一拍群友
* 转发消息

View File

@ -1,7 +1,7 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
__version__ = "39.4.5.0"
__version__ = "39.5.0.0"
import atexit
import base64
@ -132,6 +132,7 @@ class Wcf():
self.disable_recv_msg()
self.cmd_socket.close()
self.msg_socket.close()
if self._local_mode and self.sdk and self.sdk.WxDestroySDK() != 0:
self.LOG.error("退出失败!")
@ -537,9 +538,6 @@ class Wcf():
else:
self.msgQ.put(WxMsg(rsp.wxmsg))
# 退出前关闭通信通道
self.msg_socket.close()
if self._is_receiving_msg:
return True
@ -574,8 +572,6 @@ class Wcf():
pass
else:
callback(WxMsg(rsp.wxmsg))
# 退出前关闭通信通道
self.msg_socket.close()
if self._is_receiving_msg:
return True
@ -666,8 +662,8 @@ class Wcf():
friends = []
for cnt in self.get_contacts():
if (cnt["wxid"].endswith("@chatroom") or # 群聊
cnt["wxid"].startswith("gh_") or # 公众号
cnt["wxid"] in not_friends.keys() # 其他杂号
cnt["wxid"].startswith("gh_") or # 公众号
cnt["wxid"] in not_friends.keys() # 其他杂号
):
continue
friends.append(cnt)
@ -843,7 +839,7 @@ class Wcf():
Returns:
str: 成功返回存储路径空字符串为失败原因见日志
"""
sleep(1) # 强制等待 1 秒让数据入库,避免那帮人总是嗷嗷叫超时
sleep(1) # 强制等待 1 秒让数据入库,避免那帮人总是嗷嗷叫超时
if (not os.path.exists(extra)) and (self.download_attach(id, "", extra) != 0):
self.LOG.error(f"下载失败")
return ""
@ -870,7 +866,7 @@ class Wcf():
Returns:
str: 成功返回存储路径空字符串为失败原因见日志
"""
sleep(1) # 强制等待 1 秒让数据入库,避免那帮人总是嗷嗷叫超时
sleep(1) # 强制等待 1 秒让数据入库,避免那帮人总是嗷嗷叫超时
base, _ = os.path.splitext(thumb)
file_path = base + ".mp4"
file_name = os.path.basename(file_path)

File diff suppressed because one or more lines are too long