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

fix(修改日志钉钉检测): 0

parent aed6e256
Pipeline #16341 passed with stage
in 0 seconds
...@@ -27,7 +27,7 @@ func (d *Ding) HandleFunc(m *entity.Matedata) error { ...@@ -27,7 +27,7 @@ func (d *Ding) HandleFunc(m *entity.Matedata) error {
} }
for k, v := range (*m).Data { for k, v := range (*m).Data {
if k == "level" && reflect.TypeOf(v).Kind().String() == "float64" { if k == "level" && reflect.TypeOf(v).Kind().String() == "float64" {
v = fmt.Sprintf("%.0f", v) (*m).Data[k] = fmt.Sprintf("%.0f", v)
} }
if dingWebHook != "" && k == searchKey && (searchValue == "" || searchValue == v) { if dingWebHook != "" && k == searchKey && (searchValue == "" || searchValue == v) {
send = true send = true
......
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