Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
JustUndertaker committed Nov 24, 2022
2 parents ab87dd0 + 5a3c840 commit f8d3667
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">NtChat-Client</h1>

<p align="center">
<a href="https://github.com/JustUndertaker/ntchat-client/releases"><img src="https://img.shields.io/badge/release-0.3.1-blue.svg?" alt="release"></a>
<a href="https://github.com/JustUndertaker/ntchat-client/releases"><img src="https://img.shields.io/badge/release-0.3.2-blue.svg?" alt="release"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-brightgreen.svg?" alt="License"></a>
</p>

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

<details>
<summary><h2>更新日志</h2></summary>
<h3>
0.3.2
</h3>
<ul>
<li>修复图片缓存清除bug</li>
<li>升级上游依赖版本</li>
</ul>
<h3>
0.3.1
</h3>
Expand Down Expand Up @@ -138,6 +145,7 @@ http_post_url = "http://127.0.0.1:8080/ntchat/http"
</ul>
</details>


## Http api

在连接到wechat后,会自动开启http api,访问http api需要注意:
Expand Down Expand Up @@ -557,3 +565,14 @@ api地址:/modify_friend_remark

响应数据类型:None

### 获取群名

api地址:/get_room_name

参数:

| 字段名 | 数据类型 | 可选 | 默认值 | 说明 |
| :---------: | :------: | :--: | :----: | :----: |
| *room_wxid* | str | 必填 | None | 房间号 |

响应数据类型:str
2 changes: 1 addition & 1 deletion ntchat_client/wechat/image_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8d3667

Please sign in to comment.