Kaynağa Gözat

加入公排mq

master
huangjiajun 1 hafta önce
ebeveyn
işleme
c9ae0b9750
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      app/hdl/hdl_login.go
  2. +1
    -1
      app/hdl/hdl_user.go

+ 1
- 1
app/hdl/hdl_login.go Dosyayı Görüntüle

@@ -418,7 +418,7 @@ func commReq(c *gin.Context, req md.RegisterReq) {
return
}
defer ch.Release()
ch.Publish(md3.EggAppExchange, utils.SerializeStr(md3.AddPublicPlatoonUserRelationCommissionReq{RecommendUid: utils.Int64ToStr(parentUid), Uid: utils.Int64ToStr(user.Id)}), md3.EggRoutKeyForAddPublicPlatoonUserRelationCommission)
ch.Publish(md3.EggAppExchange, md3.AddPublicPlatoonUserRelationCommissionReq{RecommendUid: utils.Int64ToStr(parentUid), Uid: utils.Int64ToStr(user.Id)}, md3.EggRoutKeyForAddPublicPlatoonUserRelationCommission)
}
//TODO::推入mq处理
ch, err := rabbit.Cfg.Pool.GetChannel()


+ 1
- 1
app/hdl/hdl_user.go Dosyayı Görüntüle

@@ -196,7 +196,7 @@ func UserBindParent(c *gin.Context) {
return
}
defer ch.Release()
ch.Publish(md4.EggAppExchange, utils.SerializeStr(md4.AddPublicPlatoonUserRelationCommissionReq{RecommendUid: utils.Int64ToStr(ownUser.ParentUid), Uid: utils.Int64ToStr(ownUser.Id)}), md4.EggRoutKeyForAddPublicPlatoonUserRelationCommission)
ch.Publish(md4.EggAppExchange, md4.AddPublicPlatoonUserRelationCommissionReq{RecommendUid: utils.Int64ToStr(ownUser.ParentUid), Uid: utils.Int64ToStr(ownUser.Id)}, md4.EggRoutKeyForAddPublicPlatoonUserRelationCommission)
}
e.OutSuc(c, "success", nil)
return


Yükleniyor…
İptal
Kaydet