浏览代码

update

three
DengBiao 1年前
父节点
当前提交
27f6a3b197
共有 4 个文件被更改,包括 34 次插入0 次删除
  1. +8
    -0
      consume/dou_shen_user_register_for_my_my_fans.go
  2. +9
    -0
      consume/dou_shen_user_register_for_my_my_recommender.go
  3. +9
    -0
      consume/dou_shen_user_register_for_official_consume.go
  4. +8
    -0
      consume/dou_shen_user_register_for_operation_center.go

+ 8
- 0
consume/dou_shen_user_register_for_my_my_fans.go 查看文件

@@ -43,6 +43,14 @@ func DouShenUserRegisterConsumeForMyFans(queue md.MqQueue) {
if err != nil {
fmt.Println("!!!!!!!err!!!!!!!", err)
_ = res.Reject(false)

utils2.FilePutContents("douShenUserRegisterConsumeForMyFans_err", "[err]:"+err.Error())
if err.Error() == "用户暂未注册im系统" {
//TODO::重新推回队列末尾,避免造成队列堵塞
var msg *md.DouShenUserRegisterMessageStructForMyFans
json.Unmarshal(res.Body, &msg)
ch.Publish(queue.ExchangeName, msg, queue.RoutKey)
}
} else {
_ = res.Ack(true)
}


+ 9
- 0
consume/dou_shen_user_register_for_my_my_recommender.go 查看文件

@@ -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)
}


+ 9
- 0
consume/dou_shen_user_register_for_official_consume.go 查看文件

@@ -5,6 +5,7 @@ import (
"applet/app/db"
db2 "applet/app/db/gim"
"applet/app/db/model"
utils2 "applet/app/utils"
"applet/app/utils/logx"
utils "applet/app/utils/rpc"
"applet/consume/md"
@@ -42,6 +43,14 @@ func DouShenUserRegisterConsumeForOfficial(queue md.MqQueue) {
if err != nil {
fmt.Println("!!!!!!!err!!!!!!!", err)
_ = res.Reject(false)

utils2.FilePutContents("douShenUserRegisterConsumeForOfficial_err", "[err]:"+err.Error())
if err.Error() == "用户暂未注册im系统" {
//TODO::重新推回队列末尾,避免造成队列堵塞
var msg *md.DouShenUserRegisterMessageStructForOfficial
json.Unmarshal(res.Body, &msg)
ch.Publish(queue.ExchangeName, msg, queue.RoutKey)
}
} else {
_ = res.Ack(true)
}


+ 8
- 0
consume/dou_shen_user_register_for_operation_center.go 查看文件

@@ -43,6 +43,14 @@ func DouShenUserRegisterConsumeForOperationCenter(queue md.MqQueue) {
if err != nil {
fmt.Println("!!!!!!!err!!!!!!!", err)
_ = res.Reject(false)

utils2.FilePutContents("douShenUserRegisterConsumeForOperationCenter_err", "[err]:"+err.Error())
if err.Error() == "用户暂未注册im系统" {
//TODO::重新推回队列末尾,避免造成队列堵塞
var msg *md.DouShenUserRegisterMessageStructForOperationCenter
json.Unmarshal(res.Body, &msg)
ch.Publish(queue.ExchangeName, msg, queue.RoutKey)
}
} else {
_ = res.Ack(true)
}


正在加载...
取消
保存