diff --git a/README.md b/README.md
index 9c7a38a..0b489b0 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
NtChat-Client
-
+
@@ -103,6 +103,13 @@ http_post_url = "http://127.0.0.1:8080/ntchat/http"
更新日志
+
+ 0.3.2
+
+
+ - 修复图片缓存清除bug
+ - 升级上游依赖版本
+
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
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
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