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
3531271e
authored
May 08, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
继续整合
parent
c7298005
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
cmd/queue/main.go
cmd/queue/queue
cmd/queue/sync_audit_status/main.go
cmd/queue/main.go
View file @
3531271e
...
@@ -2,6 +2,7 @@ package main
...
@@ -2,6 +2,7 @@ package main
import
(
import
(
"github.com/imroc/req"
"github.com/imroc/req"
"scm_server/cmd/queue/sync_audit_status"
"scm_server/cmd/queue/sync_customer"
"scm_server/cmd/queue/sync_customer"
"scm_server/cmd/queue/sync_goods"
"scm_server/cmd/queue/sync_goods"
"scm_server/cmd/queue/sync_in_store"
"scm_server/cmd/queue/sync_in_store"
...
@@ -57,6 +58,7 @@ func main() {
...
@@ -57,6 +58,7 @@ func main() {
go
sync_in_store
.
Sync
()
go
sync_in_store
.
Sync
()
go
sync_out_store
.
Sync
()
go
sync_out_store
.
Sync
()
go
sync_status
.
Sync
()
go
sync_status
.
Sync
()
go
sync_audit_status
.
Sync
()
//定时请求open falcon证明自己没挂
//定时请求open falcon证明自己没挂
for
{
for
{
pushAlive
()
pushAlive
()
...
...
cmd/queue/queue
View file @
3531271e
The file could not be displayed because it is too large.
cmd/queue/sync_audit_status/main.go
View file @
3531271e
package
main
package
sync_audit_status
import
(
import
(
"encoding/json"
"encoding/json"
...
@@ -163,7 +163,12 @@ func (t *RecvPro) FailAction(dataByte []byte) error {
...
@@ -163,7 +163,12 @@ func (t *RecvPro) FailAction(dataByte []byte) error {
return
nil
return
nil
}
}
func
main
()
{
func
Sync
()
{
defer
func
()
{
if
err
:=
recover
();
err
!=
nil
{
service
.
SendDingTalkRobotToApi
(
fmt
.
Sprintf
(
"%s"
,
err
))
}
}()
t
:=
&
RecvPro
{}
t
:=
&
RecvPro
{}
rabbitmq
.
Recv
(
rabbitmq
.
QueueExchange
{
rabbitmq
.
Recv
(
rabbitmq
.
QueueExchange
{
"store_audit_status"
,
"store_audit_status"
,
...
...
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