From c0a4a5ad74db058888b2212187f2562fa731b294 Mon Sep 17 00:00:00 2001 From: justundertaker <806792561@qq.com> Date: Fri, 18 Nov 2022 11:15:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?:bug:=20fix=20#8=20=E6=B8=85=E7=90=86?= =?UTF-8?q?=E8=A7=A3=E5=AF=86=E5=9B=BE=E7=89=87=E8=B7=AF=E5=BE=84=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ntchat_client/wechat/image_decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntchat_client/wechat/image_decode.py b/ntchat_client/wechat/image_decode.py index cca0de5..6d3279a 100644 --- a/ntchat_client/wechat/image_decode.py +++ b/ntchat_client/wechat/image_decode.py @@ -77,7 +77,7 @@ def decode_file(self, image_file: Path, is_thumb: bool) -> Optional[str]: def scheduler_image_job(config: Config) -> None: """定时清理""" - path = Path(config.cache_path) + path = Path(config.image_path) days = timedelta(days=config.cache_days) if days == 0: return From fe72918ad6f0dfbfbe7c8989788fe523efb5981e Mon Sep 17 00:00:00 2001 From: justundertaker <806792561@qq.com> Date: Thu, 24 Nov 2022 12:19:20 +0800 Subject: [PATCH 2/3] =?UTF-8?q?:pencil:=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c7a38a..0b489b0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

NtChat-Client

- release + release License

@@ -103,6 +103,13 @@ http_post_url = "http://127.0.0.1:8080/ntchat/http"

更新日志

+

+ 0.3.2 +

+

0.3.1

@@ -138,6 +145,7 @@ http_post_url = "http://127.0.0.1:8080/ntchat/http"
+ ## Http api 在连接到wechat后,会自动开启http api,访问http api需要注意: @@ -557,3 +565,14 @@ api地址:/modify_friend_remark 响应数据类型:None +### 获取群名 + +api地址:/get_room_name + +参数: + +| 字段名 | 数据类型 | 可选 | 默认值 | 说明 | +| :---------: | :------: | :--: | :----: | :----: | +| *room_wxid* | str | 必填 | None | 房间号 | + +响应数据类型:str From 5a3c8405a7c26e95b8efc26864910297c13edac6 Mon Sep 17 00:00:00 2001 From: justundertaker <806792561@qq.com> Date: Thu, 24 Nov 2022 12:19:53 +0800 Subject: [PATCH 3/3] =?UTF-8?q?:arrow=5Fup:=E5=8D=87=E7=BA=A7=E4=B8=8A?= =?UTF-8?q?=E6=B8=B8=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 122c98b..08487be 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ httpx==0.23.0 idna==3.4 loguru==0.6.0 multidict==6.0.2 -ntchat==0.1.16 +ntchat==0.1.19 pydantic==1.10.2 numpy==1.23.4 pyee==9.0.4