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