From 66be1555d2029b9022f8912575ccaae0c7e6698b Mon Sep 17 00:00:00 2001 From: zhangchenhao Date: Sat, 10 May 2025 16:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E9=83=A8=E7=BD=B2=E6=89=BE=E4=B8=8D=E5=88=B0=E8=AF=81?= =?UTF-8?q?=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/workflow/executor.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/internal/workflow/executor.go b/backend/internal/workflow/executor.go index 0c09c55..00ada84 100644 --- a/backend/internal/workflow/executor.go +++ b/backend/internal/workflow/executor.go @@ -102,6 +102,7 @@ func upload(params map[string]any) (any, error) { logger.Info("=============上传证书获取失败=============") return nil, errors.New("证书 ID 类型错误") } + result := map[string]any{} certObj, err := cert.GetCert(certId) if err != nil { logger.Error(err.Error()) @@ -114,7 +115,9 @@ func upload(params map[string]any) (any, error) { return nil, errors.New("证书不存在") } logger.Debug(fmt.Sprintf("证书 ID: %s", certId)) - return certObj, nil + result["cert"] = certObj["cert"] + result["key"] = certObj["key"] + return result, nil } }