mirror of
https://github.com/tom-snow/docker-ComWechat.git
synced 2025-01-07 21:45:51 +08:00
修复 3.7.0.30-0.0.8 的 dll 没启动的问题
This commit is contained in:
parent
d8e9ec4633
commit
33902cd475
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
/docker-compose-dev.yaml
|
||||
/Dockerfile-dev
|
||||
|
||||
# General
|
||||
.DS_Store
|
||||
|
4
run.py
4
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'])
|
||||
|
||||
|
1
test.py
1
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})) # 修改成最新版本,防止更新
|
||||
|
Loading…
Reference in New Issue
Block a user