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})) # 修改成最新版本,防止更新