Commit f932c8b6 authored by 李世星's avatar 李世星

Merge branch 'lisx' into 'developer'

fix(202301301620): 1

See merge request !13
parents 47e1bcd8 a7a8f797
Pipeline #16075 passed with stage
in 0 seconds
...@@ -74,12 +74,12 @@ func CreateDingMessage(messageType string, msg interface{}, mobiles []string) DD ...@@ -74,12 +74,12 @@ func CreateDingMessage(messageType string, msg interface{}, mobiles []string) DD
func pluginNotice(msg interface{}) string { func pluginNotice(msg interface{}) string {
mateData := msg.(*entity.Matedata) mateData := msg.(*entity.Matedata)
log.Panicln(mateData)
templateBuff := bytes.NewBuffer([]byte{}) templateBuff := bytes.NewBuffer([]byte{})
templateBuff.WriteString(fmt.Sprintf("# 服务通知 \r\n > [节点]:%s", mateData.SourceAgent)) templateBuff.WriteString(fmt.Sprintf("# 服务通知 \r\n > [节点]:%s", mateData.SourceAgent))
for key, value := range mateData.Data { for key, value := range mateData.Data {
templateBuff.WriteString(fmt.Sprintf(" \r\n > [%s]:%s", key, value)) templateBuff.WriteString(fmt.Sprintf(" \r\n > [%s]:%s", key, value))
} }
templateBuff.WriteString(fmt.Sprintf(" \r\n ###### %s", time.Now().Format("2006/01/02 15:04:05"))) templateBuff.WriteString(fmt.Sprintf(" \r\n ###### %s", time.Now().Format("2006/01/02 15:04:05")))
log.Panicln(templateBuff.String())
return templateBuff.String() return templateBuff.String()
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment