From cbf4f8ec36e368c468a3359292222122ebd77962 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Thu, 31 Aug 2023 16:21:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/service/app.go b/backend/app/service/app.go index bcec3c183..f3350709f 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -781,7 +781,8 @@ func (a AppService) SyncAppListFromRemote() (err error) { version := v.Name detail := detailsMap[version] - dockerComposeUrl := fmt.Sprintf("%s/%s/%s/%s", baseRemoteUrl, app.Key, version, "docker-compose.yml") + remoteVersionUrl := fmt.Sprintf("%s/%s/%s", baseRemoteUrl, app.Key, version) + dockerComposeUrl := fmt.Sprintf("%s/%s", remoteVersionUrl, "docker-compose.yml") composeRes, err := http.Get(dockerComposeUrl) if err != nil { return err @@ -794,7 +795,7 @@ func (a AppService) SyncAppListFromRemote() (err error) { paramByte, _ := json.Marshal(v.AppForm) detail.Params = string(paramByte) - detail.DownloadUrl = v.DownloadUrl + detail.DownloadUrl = fmt.Sprintf("%s/%s", remoteVersionUrl, version+".tar.gz") detail.DownloadCallBackUrl = v.DownloadCallBackUrl detail.Update = true detail.LastModified = v.LastModified