Update test.py

This commit is contained in:
A lucky guy 2023-03-13 17:05:14 +08:00 committed by GitHub
parent 03d9636e27
commit e2b33a3eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ if __name__ == '__main__':
# 获取最新版本微信版本号 @tom-snow
resp = requests.get(url = "https://api.github.com/repos/tom-snow/wechat-windows-versions/releases?per_page=1",params = {"per_page": 1})
latest_version = resp.json()[0]["tag_name"]
latest_version = resp.json()[0]["tag_name"].replace("v","") # fixed by: @xixixi2000
print(post_wechat_http_api(APIS.WECHAT_SET_VERSION, port, {"version": latest_version})) # 修改成最新版本,防止更新
print(post_wechat_http_api(APIS.WECHAT_MSG_START_HOOK, port, {"port":10808}))