Browse Source

加入公排mq

master
huangjiajun 1 week ago
parent
commit
c9ae0b9750
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/hdl/hdl_login.go
  2. +1
    -1
      app/hdl/hdl_user.go

+ 1
- 1
app/hdl/hdl_login.go View File

@@ -418,7 +418,7 @@ func commReq(c *gin.Context, req md.RegisterReq) {
return return
} }
defer ch.Release() 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处理 //TODO::推入mq处理
ch, err := rabbit.Cfg.Pool.GetChannel() ch, err := rabbit.Cfg.Pool.GetChannel()


+ 1
- 1
app/hdl/hdl_user.go View File

@@ -196,7 +196,7 @@ func UserBindParent(c *gin.Context) {
return return
} }
defer ch.Release() 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) e.OutSuc(c, "success", nil)
return return


Loading…
Cancel
Save