|
|
@@ -13,6 +13,7 @@ import ( |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"github.com/streadway/amqp" |
|
|
|
"time" |
|
|
|
) |
|
|
|
|
|
|
|
func DouShenUserRegisterConsumeForOperationCenter(queue md.MqQueue) { |
|
|
@@ -50,6 +51,7 @@ func DouShenUserRegisterConsumeForOperationCenter(queue md.MqQueue) { |
|
|
|
} |
|
|
|
|
|
|
|
func handleDouShenUserRegisterConsumeForOperationCenter(msgData []byte) error { |
|
|
|
time.Sleep(time.Duration(3) * time.Second) |
|
|
|
//1、解析mq中queue的数据结构体 |
|
|
|
var msg *md.DouShenUserRegisterMessageStructForOperationCenter |
|
|
|
err := json.Unmarshal(msgData, &msg) |
|
|
|