Commit 3531271e by mushishixian

继续整合

parent c7298005
......@@ -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()
......
The file could not be displayed because it is too large.
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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment