huangjiajun преди 1 седмица
родител
ревизия
c9ae0b9750
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +1
    -1
      app/hdl/hdl_login.go
  2. +1
    -1
      app/hdl/hdl_user.go

+ 1
- 1
app/hdl/hdl_login.go Целия файл

@@ -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 Целия файл

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


Зареждане…
Отказ
Запис