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