Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
925873b3
authored
Oct 28, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
c8c02488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
pkg/common/log_report.go
pkg/common/log_report.go
View file @
925873b3
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment