mirror of
https://github.com/tom-snow/docker-ComWechat.git
synced 2025-01-07 21:45:51 +08:00
Update test.py
This commit is contained in:
parent
03d9636e27
commit
e2b33a3eef
2
test.py
2
test.py
@ -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}))
|
||||
|
Loading…
Reference in New Issue
Block a user