From 4bf1ffdb67a9ec4db99aeadeefdae8f4bf1e75cf Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 12 Dec 2024 22:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=85=AC=E6=8E=92mq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/hdl/hdl_user.go b/app/hdl/hdl_user.go index bf9b380..ec0aa2e 100644 --- a/app/hdl/hdl_user.go +++ b/app/hdl/hdl_user.go @@ -188,7 +188,7 @@ func UserBindParent(c *gin.Context) { // 插入多级关联 go svc.RoutineMultiRelate(ur.ParentUid, ur.Uid, initLV) //TODO 绑定成功后 加群之类的怎么处理 - if user.ParentUid > 0 { + if ownUser.ParentUid > 0 { //TODO::推入mq异步处理 ch, err := rabbit.Cfg.Pool.GetChannel() if err != nil { @@ -196,7 +196,7 @@ func UserBindParent(c *gin.Context) { return } defer ch.Release() - ch.Publish(md4.EggAppExchange, utils.SerializeStr(md4.AddPublicPlatoonUserRelationCommissionReq{RecommendUid: utils.Int64ToStr(user.ParentUid), Uid: utils.Int64ToStr(user.Id)}), md4.EggRoutKeyForAddPublicPlatoonUserRelationCommission) + ch.Publish(md4.EggAppExchange, utils.SerializeStr(md4.AddPublicPlatoonUserRelationCommissionReq{RecommendUid: utils.Int64ToStr(ownUser.ParentUid), Uid: utils.Int64ToStr(ownUser.Id)}), md4.EggRoutKeyForAddPublicPlatoonUserRelationCommission) } e.OutSuc(c, "success", nil) return