From 33902cd47562bb226c653060ce9ec0b95ef3dc4e Mon Sep 17 00:00:00 2001 From: tom-snow Date: Tue, 11 Oct 2022 14:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=203.7.0.30-0.0.8=20=E7=9A=84?= =?UTF-8?q?=20dll=20=E6=B2=A1=E5=90=AF=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ VERSION | 2 +- run.py | 4 +++- test.py | 1 - 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 68b6596..319d14f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +/docker-compose-dev.yaml +/Dockerfile-dev # General .DS_Store diff --git a/VERSION b/VERSION index 174a3d5..1e66a61 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.3 \ No newline at end of file +v0.3.1 \ No newline at end of file diff --git a/run.py b/run.py index 15ab2e6..5176e14 100644 --- a/run.py +++ b/run.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -import subprocess, os, signal, datetime +import subprocess, os, signal, datetime, time class DockerWechatHook: @@ -45,6 +45,8 @@ class DockerWechatHook: # self.wechat = subprocess.run(['wine','/home/user/.wine/drive_c/Program Files/Tencent/WeChat/WeChat.exe']) def run_hook(self): + print("等待 5 秒再 hook") + time.sleep(5) self.reg_hook = subprocess.run(['wine','/comwechat/http/WeChatHook.exe']) # self.reg_hook = subprocess.run(['wine', 'explorer.exe']) diff --git a/test.py b/test.py index 082933a..75cc998 100644 --- a/test.py +++ b/test.py @@ -323,7 +323,6 @@ if __name__ == '__main__': print(post_wechat_http_api(APIS.WECHAT_GET_SELF_INFO, port)) # 获取最新版本微信版本号 @tom-snow - # https://api.github.com/repos/tom-snow/wechat-windows-versions/releases?per_page=1 # json 读 [0]["tag_name"] 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"] print(post_wechat_http_api(APIS.WECHAT_SET_VERSION, port, {"version": latest_version})) # 修改成最新版本,防止更新