From 9974c5fa20233b0c03b989b66ff180daa646a243 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 7 Jul 2025 11:05:50 +0800 Subject: [PATCH] feat: add DownloadCallBack for install php runtime (#9430) --- agent/app/service/runtime_utils.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/agent/app/service/runtime_utils.go b/agent/app/service/runtime_utils.go index dd2dbb5e6..8e87adbd5 100644 --- a/agent/app/service/runtime_utils.go +++ b/agent/app/service/runtime_utils.go @@ -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 }