Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
photo_taking
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
46979a66
authored
Dec 03, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改成notok进行报警测试
parent
ea7b4b9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
internal/server/http/server.go
internal/service/rabbitmq.go
internal/server/http/server.go
View file @
46979a66
...
@@ -68,7 +68,7 @@ func ping(ctx *bm.Context) {
...
@@ -68,7 +68,7 @@ func ping(ctx *bm.Context) {
}
}
func
hbsdata
(
c
*
bm
.
Context
)
{
func
hbsdata
(
c
*
bm
.
Context
)
{
c
.
Writer
.
Write
([]
byte
(
"ok"
))
c
.
Writer
.
Write
([]
byte
(
"
not
ok"
))
}
}
// example for http request handler.
// example for http request handler.
...
...
internal/service/rabbitmq.go
View file @
46979a66
...
@@ -5,6 +5,8 @@ import "github.com/streadway/amqp"
...
@@ -5,6 +5,8 @@ import "github.com/streadway/amqp"
func
SendSubmitOrderMqTOErp
(
content
[]
byte
)(
err
error
)
{
func
SendSubmitOrderMqTOErp
(
content
[]
byte
)(
err
error
)
{
//链接mq
//链接mq
//amqp://huntmouser:jy2y2900@119.23.79.136:5672/
//amqp://guest:guest@192.168.2.232:5672/
conn
,
err
:=
amqp
.
Dial
(
"amqp://huntmouser:jy2y2900@119.23.79.136:5672/"
);
conn
,
err
:=
amqp
.
Dial
(
"amqp://huntmouser:jy2y2900@119.23.79.136:5672/"
);
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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