From 1d99d4c7b641a07ee8f4a5851160d6538024e9ba Mon Sep 17 00:00:00 2001 From: BugsGuru Date: Wed, 3 Jul 2024 17:11:44 +0800 Subject: [PATCH] fix workflow url in notification --- sqle/notification/notification.go | 2 +- sqle/pkg/im/im.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sqle/notification/notification.go b/sqle/notification/notification.go index 7252a32a07..9fa738e3a2 100644 --- a/sqle/notification/notification.go +++ b/sqle/notification/notification.go @@ -139,7 +139,7 @@ func (w *WorkflowNotification) NotificationBody() string { buf.WriteString(head) if w.config.SQLEUrl != nil { - buf.WriteString(fmt.Sprintf("\n- 工单链接: %v/project/%v/order/%v", + buf.WriteString(fmt.Sprintf("\n- 工单链接: %v/project/%v/exec-workflow/%v", strings.TrimRight(*w.config.SQLEUrl, "/"), w.workflow.ProjectId, w.workflow.WorkflowId, diff --git a/sqle/pkg/im/im.go b/sqle/pkg/im/im.go index 80a14b3856..68c2e40d2e 100644 --- a/sqle/pkg/im/im.go +++ b/sqle/pkg/im/im.go @@ -102,7 +102,7 @@ func CreateApprove(projectId, workflowId string) { } sqleUrl := systemVariables[model.SystemVariableSqleUrl].Value - workflowUrl := fmt.Sprintf("%v/project/%s/order/%s", sqleUrl, workflow.ProjectId, workflow.WorkflowId) + workflowUrl := fmt.Sprintf("%v/project/%s/exec-workflow/%s", sqleUrl, workflow.ProjectId, workflow.WorkflowId) if sqleUrl == "" { newLog.Errorf("sqle url is empty") workflowUrl = ""