From ee32c8b83dbfe75a84842e0807ca7340fd7f7c31 Mon Sep 17 00:00:00 2001 From: ayflying Date: Fri, 11 Jul 2025 14:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=94=AF=E6=8C=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BB=A3=E7=90=86=E5=9C=B0=E5=9D=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/update.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index 443b643..d0521ea 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -124,11 +124,11 @@ var ( FileUrl: url[v.S3], }) if err != nil { + Proxy := g.Cfg().MustGet(ctx, "update_proxy", "http://192.168.50.170:10808").String() g.Log().Debugf(ctx, "切换代理进行上传:err=%v", err) - get, err = client.Proxy("http://192.168.50.114:10808"). - Post(ctx, address+"/callback/update", &UpdateReq{ - FileUrl: url[v.S3], - }) + get, err = client.Proxy(Proxy).Post(ctx, address+"/callback/update", &UpdateReq{ + FileUrl: url[v.S3], + }) } if err != nil { g.Log().Error(ctx, err)