Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_scm_wms_sync
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
Hide 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
import
(
"github.com/imroc/req"
"scm_server/cmd/queue/sync_audit_status"
"scm_server/cmd/queue/sync_customer"
"scm_server/cmd/queue/sync_goods"
"scm_server/cmd/queue/sync_in_store"
...
...
@@ -57,6 +58,7 @@ func main() {
go
sync_in_store
.
Sync
()
go
sync_out_store
.
Sync
()
go
sync_status
.
Sync
()
go
sync_audit_status
.
Sync
()
//定时请求open falcon证明自己没挂
for
{
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
(
"encoding/json"
...
...
@@ -163,7 +163,12 @@ func (t *RecvPro) FailAction(dataByte []byte) error {
return
nil
}
func
main
()
{
func
Sync
()
{
defer
func
()
{
if
err
:=
recover
();
err
!=
nil
{
service
.
SendDingTalkRobotToApi
(
fmt
.
Sprintf
(
"%s"
,
err
))
}
}()
t
:=
&
RecvPro
{}
rabbitmq
.
Recv
(
rabbitmq
.
QueueExchange
{
"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