Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
scm_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
be79893f
authored
May 16, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
测试
parent
6f7945c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
cmd/queue/sync_out_store/main.go
internal/service/dingding.go
cmd/queue/sync_out_store/main.go
View file @
be79893f
...
...
@@ -59,7 +59,8 @@ func (t *RecvPro) Consumer(dataByte []byte) error {
)
//先去转换队列消息的json,如果失败,记录起来
if
err
=
json
.
Unmarshal
(
dataByte
,
&
message
);
err
!=
nil
{
err
=
errors
.
New
(
string
(
dataByte
))
service
.
SendDingTalkRobotToApi
(
string
(
dataByte
))
service
.
SendDingTalkRobotToApi
(
err
.
Error
())
goto
ERR
}
//判断操作类型
...
...
internal/service/dingding.go
View file @
be79893f
...
...
@@ -51,11 +51,11 @@ type DingDingRequest struct {
IsAtAll
bool
`json:"isAtAll"`
}
func
SendDingTalkRobotToApi
(
content
string
)
{
func
SendDingTalkRobotToApi
1
(
content
string
)
{
fmt
.
Println
(
content
)
}
func
SendDingTalkRobotToApi
1
(
content
string
)
{
func
SendDingTalkRobotToApi
(
content
string
)
{
var
(
requestData
DingDingRequest
apiUrl
,
token
string
...
...
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