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

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

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