From 1e07926e2fb2680ff532cedf208296f9ef34e817 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 15 Apr 2023 12:39:26 +0800 Subject: [PATCH] update --- .../dou_shen_user_register_for_my_my_fans.go | 4 ++-- ...hen_user_register_for_my_my_recommender.go | 2 +- ...shen_user_register_for_official_consume.go | 2 +- ...shen_user_register_for_operation_center.go | 2 +- consume/md/consume_key.go | 23 ++++++++++--------- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/consume/dou_shen_user_register_for_my_my_fans.go b/consume/dou_shen_user_register_for_my_my_fans.go index 72a0b3f..cfb4644 100644 --- a/consume/dou_shen_user_register_for_my_my_fans.go +++ b/consume/dou_shen_user_register_for_my_my_fans.go @@ -19,7 +19,7 @@ import ( ) func DouShenUserRegisterConsumeForMyFans(queue md.MqQueue) { - fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") + fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForMyFans>>>>>>>>>>>>") ch, err := rabbit.Cfg.Pool.GetChannel() if err != nil { logx.Error(err) @@ -72,7 +72,7 @@ func handleDouShenUserRegisterConsumeForMyFans(msgData []byte) error { return errors.New("用户暂未注册im系统") } - groupName := "我的直属粉丝【x】群" + groupName := gimUser.Nickname + "-粉丝[1]群" //3、创建群 resp, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).CreateGroup(utils.GetCtx("", utils2.Int64ToStr(gimUser.Id), "", msg.MasterId), &pb.CreateGroupReq{ Name: groupName, diff --git a/consume/dou_shen_user_register_for_my_my_recommender.go b/consume/dou_shen_user_register_for_my_my_recommender.go index a02435f..246794f 100644 --- a/consume/dou_shen_user_register_for_my_my_recommender.go +++ b/consume/dou_shen_user_register_for_my_my_recommender.go @@ -16,7 +16,7 @@ import ( ) func DouShenUserRegisterConsumeForMyRecommender(queue md.MqQueue) { - fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") + fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForMyRecommender>>>>>>>>>>>>") ch, err := rabbit.Cfg.Pool.GetChannel() if err != nil { logx.Error(err) diff --git a/consume/dou_shen_user_register_for_official_consume.go b/consume/dou_shen_user_register_for_official_consume.go index 3843cae..2f22107 100644 --- a/consume/dou_shen_user_register_for_official_consume.go +++ b/consume/dou_shen_user_register_for_official_consume.go @@ -18,7 +18,7 @@ import ( ) func DouShenUserRegisterConsumeForOfficial(queue md.MqQueue) { - fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") + fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForOfficial>>>>>>>>>>>>") ch, err := rabbit.Cfg.Pool.GetChannel() if err != nil { logx.Error(err) diff --git a/consume/dou_shen_user_register_for_operation_center.go b/consume/dou_shen_user_register_for_operation_center.go index aeb9d68..863d2db 100644 --- a/consume/dou_shen_user_register_for_operation_center.go +++ b/consume/dou_shen_user_register_for_operation_center.go @@ -16,7 +16,7 @@ import ( ) func DouShenUserRegisterConsumeForOperationCenter(queue md.MqQueue) { - fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") + fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForOperationCenter>>>>>>>>>>>>") ch, err := rabbit.Cfg.Pool.GetChannel() if err != nil { logx.Error(err) diff --git a/consume/md/consume_key.go b/consume/md/consume_key.go index 0c6343e..bf61633 100644 --- a/consume/md/consume_key.go +++ b/consume/md/consume_key.go @@ -65,32 +65,33 @@ var RabbitMqQueueKeyList = []*MqQueue{ BindKey: "", ConsumeFunName: "ZhiosFastReturnOrderRefund", }, + { ExchangeName: "zhios.doushen.user.register.exchange", - Name: "zhios_doushen_user_register_official", + Name: "zhios_doushen_user_register_my_fans", Type: DirectQueueType, IsPersistent: false, - RoutKey: "official", - BindKey: "official", - ConsumeFunName: "DouShenUserRegisterConsumeForOfficial", + RoutKey: "my_fans", + BindKey: "my_fans", + ConsumeFunName: "DouShenUserRegisterConsumeForMyFans", }, { ExchangeName: "zhios.doushen.user.register.exchange", Name: "zhios_doushen_user_register_operation_center", Type: DirectQueueType, IsPersistent: false, - RoutKey: "official", - BindKey: "official", - ConsumeFunName: "DouShenUserRegisterConsumeForOfficial", + RoutKey: "operation_center", + BindKey: "operation_center", + ConsumeFunName: "DouShenUserRegisterConsumeForOperationCenter", }, { ExchangeName: "zhios.doushen.user.register.exchange", - Name: "zhios_doushen_user_register_official", + Name: "zhios_doushen_user_register_my_recommender", Type: DirectQueueType, IsPersistent: false, - RoutKey: "official", - BindKey: "official", - ConsumeFunName: "DouShenUserRegisterConsumeForOfficial", + RoutKey: "my_recommender", + BindKey: "my_recommender", + ConsumeFunName: "DouShenUserRegisterConsumeForMyRecommender", }, { ExchangeName: "zhios.doushen.user.register.exchange",