feat: add DownloadCallBack for install php runtime (#9430)

This commit is contained in:
CityFun 2025-07-07 11:05:50 +08:00 committed by GitHub
parent 997b706d8a
commit 9974c5fa20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,6 +102,13 @@ func handlePHP(create request.RuntimeCreate, runtime *model.Runtime, fileOp file
runtime.Params = string(forms)
runtime.Status = constant.StatusBuilding
go func() {
appDetail, err := appDetailRepo.GetFirst(repo.WithByID(runtime.AppDetailID))
if err == nil {
RequestDownloadCallBack(appDetail.DownloadCallBackUrl)
}
}()
go buildRuntime(runtime, "", "", false)
return
}