From e79a7ba2fe02a9a693dfa6b5b029a44f8e9ff2a4 Mon Sep 17 00:00:00 2001 From: putyy Date: Thu, 13 Feb 2025 09:23:39 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96wx=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/proxy.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/proxy.go b/core/proxy.go index cd27e78..c6bf23c 100644 --- a/core/proxy.go +++ b/core/proxy.go @@ -249,8 +249,10 @@ func (p *Proxy) httpResponseEvent(resp *http.Response, ctx *goproxy.ProxyCtx) *h if strings.HasSuffix(host, "res.wx.qq.com") { respTemp := resp + is := false if strings.HasSuffix(respTemp.Request.URL.RequestURI(), ".js?v="+p.v()) { respTemp = p.replaceWxJsContent(respTemp, ".js\"", ".js?v="+p.v()+"\"") + is = true } if strings.Contains(Path, "web/web-finder/res/js/virtual_svg-icons-register.publish") { @@ -292,7 +294,9 @@ func (p *Proxy) httpResponseEvent(resp *http.Response, ctx *goproxy.ProxyCtx) *h respTemp.Header.Set("Content-Length", fmt.Sprintf("%d", len(newBodyBytes))) return respTemp } - return respTemp + if is { + return respTemp + } } classify, suffix := TypeSuffix(resp.Header.Get("Content-Type")) From e00a7c9044db47aa4a7499553df1e0647f52f717 Mon Sep 17 00:00:00 2001 From: putyy Date: Thu, 13 Feb 2025 09:24:00 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=96wx=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 435d279..d8d0587 100644 --- a/main.go +++ b/main.go @@ -61,7 +61,7 @@ func main() { |_| \___| |___/ \__,_| \___/ \_/\_/ |_| |_| |_| \___/ \__ ,_| \__,_| \___| |_|` log.Println(logo) - fmt.Println("version", app.Version) + fmt.Println("version:", app.Version) fmt.Println("lockfile:", app.LockFile) app.Startup(ctx) }, From 2282f72b2f273801307f129d39aefeb4cf56137b Mon Sep 17 00:00:00 2001 From: putyy Date: Thu, 6 Mar 2025 22:05:53 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0f70daa..01eb636 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ## res-downloader -### 爱享素材下载器 +### 爱享素材下载器 [在线文档](https://res.putyy.com/)、[加入群聊](https://qm.qq.com/q/ImE37ayJmc) 🎯 基于Go + [wails](https://github.com/wailsapp/wails) 📦 操作简单、可获取不同类型资源 @@ -8,7 +8,7 @@ 💪 支持微信视频号、小程序、抖音、快手、小红书、酷狗音乐、qq音乐等网络资源下载 👼 支持设置代理以获取特殊网络下的资源 -## [在线文档](https://res.putyy.com/)、[加入群聊](https://qm.qq.com/q/ImE37ayJmc)、[Electron版](https://github.com/putyy/res-downloader/tree/old) +## [resd-mini版本](https://github.com/putyy/res-downloader)、[Electron版本](https://github.com/putyy/res-downloader/tree/old) ## 软件下载(Win7下载2.3.0版本) 🆕 [github下载](https://github.com/putyy/res-downloader/releases)