|
|
@@ -4,6 +4,7 @@ import ( |
|
|
|
"applet/app/cfg" |
|
|
|
"applet/app/db" |
|
|
|
db2 "applet/app/db/gim" |
|
|
|
utils2 "applet/app/utils" |
|
|
|
"applet/app/utils/logx" |
|
|
|
utils "applet/app/utils/rpc" |
|
|
|
"applet/consume/md" |
|
|
@@ -41,6 +42,14 @@ func DouShenUserRegisterConsumeForMyRecommender(queue md.MqQueue) { |
|
|
|
if err != nil { |
|
|
|
fmt.Println("!!!!!!!err!!!!!!!", err) |
|
|
|
_ = res.Reject(false) |
|
|
|
|
|
|
|
utils2.FilePutContents("douShenUserRegisterConsumeForMyRecommender_err", "[err]:"+err.Error()) |
|
|
|
if err.Error() == "用户暂未注册im系统" { |
|
|
|
//TODO::重新推回队列末尾,避免造成队列堵塞 |
|
|
|
var msg *md.DouShenUserRegisterMessageStructForMyRecommender |
|
|
|
json.Unmarshal(res.Body, &msg) |
|
|
|
ch.Publish(queue.ExchangeName, msg, queue.RoutKey) |
|
|
|
} |
|
|
|
} else { |
|
|
|
_ = res.Ack(true) |
|
|
|
} |
|
|
|