Commit 925873b3 by huangchengyi

1.0

parent c8c02488
Showing with 1 additions and 6 deletions
...@@ -2,7 +2,6 @@ package common ...@@ -2,7 +2,6 @@ package common
import ( import (
"encoding/json" "encoding/json"
"fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gomodule/redigo/redis" "github.com/gomodule/redigo/redis"
"github.com/ichunt2019/logger" "github.com/ichunt2019/logger"
...@@ -55,11 +54,7 @@ func AnalyzeSearchError(ctx *gin.Context,code int, ip, errMsg, file, line, metho ...@@ -55,11 +54,7 @@ func AnalyzeSearchError(ctx *gin.Context,code int, ip, errMsg, file, line, metho
if !strings.Contains(strings.ToUpper(errMsg), "SOAP-ERROR") { if !strings.Contains(strings.ToUpper(errMsg), "SOAP-ERROR") {
go func() { go func() {
//推送到钉钉 //推送到钉钉
result, err := message.DingDingPush(errMsg) message.DingDingPush(errMsg)
fmt.Print(result,err)
if err != nil || result.Errcode != 0 {
logger.Error("%s", err.Error())
}
}() }()
} }
} else { } else {
......
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 sign in to comment