|
|
@ -335,9 +335,6 @@ func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) ( |
|
|
|
if err = createLink(ctx, app, appInstall, req.Params); err != nil { |
|
|
|
if err = createLink(ctx, app, appInstall, req.Params); err != nil { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
if err = upAppPre(app, appInstall); err != nil { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
go func() { |
|
|
|
go func() { |
|
|
|
if err = copyData(app, appDetail, appInstall, req); err != nil { |
|
|
|
if err = copyData(app, appDetail, appInstall, req); err != nil { |
|
|
|
if appInstall.Status == constant.Installing { |
|
|
|
if appInstall.Status == constant.Installing { |
|
|
@ -347,6 +344,9 @@ func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) ( |
|
|
|
_ = appInstallRepo.Save(context.Background(), appInstall) |
|
|
|
_ = appInstallRepo.Save(context.Background(), appInstall) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if err = upAppPre(app, appInstall); err != nil { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
go func() { |
|
|
|
go func() { |
|
|
|
_, _ = http.Get(appDetail.DownloadCallBackUrl) |
|
|
|
_, _ = http.Get(appDetail.DownloadCallBackUrl) |
|
|
|
}() |
|
|
|
}() |
|
|
|