From 3d3acd5ef4ac01afb3ce6998c50256680b1c4838 Mon Sep 17 00:00:00 2001 From: jackyin <648588267@qq.com> Date: Tue, 23 Jun 2026 20:22:53 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab2c5c7..3eb0791 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # WeChat 4.0 Message hook -4.1.9之后的不更新了,感谢各位大佬的支持 +4.1.9之后的不更新了,感谢各位大佬的支持,mac pc微信收不到消息记录!!! 本代码库中的所有代码、示例、文档及相关内容(以下简称“本项目”)仅供学习、研究和技术交流之目的使用。使用本项目所产生的任何风险(包括但不限于数据丢失、系统崩溃、安全问题、法律风险等)均由使用者自行承担。 From b250dd31ba65ec0d69f2b78869a6f242609a00ba Mon Sep 17 00:00:00 2001 From: yincong Date: Wed, 24 Jun 2026 10:00:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=8Eimage=5Fpath=E4=B8=AD=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E8=8E=B7=E5=8F=96id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onebot/main.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/onebot/main.go b/onebot/main.go index 2a91302..7f9985b 100644 --- a/onebot/main.go +++ b/onebot/main.go @@ -69,6 +69,19 @@ func initFlag() { flag.Parse() + if myWechatId == "" && config.ImagePath != "" { + if idx := strings.Index(config.ImagePath, "xwechat_files/"); idx != -1 { + rest := config.ImagePath[idx+len("xwechat_files/"):] + if end := strings.Index(rest, "/"); end != -1 { + rest = rest[:end] + } + // 去掉末尾的 "_xxxx" 后缀,保留 wxid_xxx 部分 + if last := strings.LastIndex(rest, "_"); last > strings.Index(rest, "_") { + myWechatId = rest[:last] + } + } + } + fmt.Println("FridaType", config.FridaType) fmt.Println("SendURL", config.SendURL) fmt.Println("ReceiveHost", config.ReceiveHost)