@@ -19,7 +19,7 @@ import ( | |||||
) | ) | ||||
func DouShenUserRegisterConsumeForMyFans(queue md.MqQueue) { | func DouShenUserRegisterConsumeForMyFans(queue md.MqQueue) { | ||||
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") | |||||
fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForMyFans>>>>>>>>>>>>") | |||||
ch, err := rabbit.Cfg.Pool.GetChannel() | ch, err := rabbit.Cfg.Pool.GetChannel() | ||||
if err != nil { | if err != nil { | ||||
logx.Error(err) | logx.Error(err) | ||||
@@ -72,7 +72,7 @@ func handleDouShenUserRegisterConsumeForMyFans(msgData []byte) error { | |||||
return errors.New("用户暂未注册im系统") | return errors.New("用户暂未注册im系统") | ||||
} | } | ||||
groupName := "我的直属粉丝【x】群" | |||||
groupName := gimUser.Nickname + "-粉丝[1]群" | |||||
//3、创建群 | //3、创建群 | ||||
resp, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).CreateGroup(utils.GetCtx("", utils2.Int64ToStr(gimUser.Id), "", msg.MasterId), &pb.CreateGroupReq{ | resp, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).CreateGroup(utils.GetCtx("", utils2.Int64ToStr(gimUser.Id), "", msg.MasterId), &pb.CreateGroupReq{ | ||||
Name: groupName, | Name: groupName, | ||||
@@ -16,7 +16,7 @@ import ( | |||||
) | ) | ||||
func DouShenUserRegisterConsumeForMyRecommender(queue md.MqQueue) { | func DouShenUserRegisterConsumeForMyRecommender(queue md.MqQueue) { | ||||
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") | |||||
fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForMyRecommender>>>>>>>>>>>>") | |||||
ch, err := rabbit.Cfg.Pool.GetChannel() | ch, err := rabbit.Cfg.Pool.GetChannel() | ||||
if err != nil { | if err != nil { | ||||
logx.Error(err) | logx.Error(err) | ||||
@@ -18,7 +18,7 @@ import ( | |||||
) | ) | ||||
func DouShenUserRegisterConsumeForOfficial(queue md.MqQueue) { | func DouShenUserRegisterConsumeForOfficial(queue md.MqQueue) { | ||||
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") | |||||
fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForOfficial>>>>>>>>>>>>") | |||||
ch, err := rabbit.Cfg.Pool.GetChannel() | ch, err := rabbit.Cfg.Pool.GetChannel() | ||||
if err != nil { | if err != nil { | ||||
logx.Error(err) | logx.Error(err) | ||||
@@ -16,7 +16,7 @@ import ( | |||||
) | ) | ||||
func DouShenUserRegisterConsumeForOperationCenter(queue md.MqQueue) { | func DouShenUserRegisterConsumeForOperationCenter(queue md.MqQueue) { | ||||
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>") | |||||
fmt.Println(">>>>>>>>>>>>DouShenUserRegisterConsumeForOperationCenter>>>>>>>>>>>>") | |||||
ch, err := rabbit.Cfg.Pool.GetChannel() | ch, err := rabbit.Cfg.Pool.GetChannel() | ||||
if err != nil { | if err != nil { | ||||
logx.Error(err) | logx.Error(err) | ||||
@@ -65,32 +65,33 @@ var RabbitMqQueueKeyList = []*MqQueue{ | |||||
BindKey: "", | BindKey: "", | ||||
ConsumeFunName: "ZhiosFastReturnOrderRefund", | ConsumeFunName: "ZhiosFastReturnOrderRefund", | ||||
}, | }, | ||||
{ | { | ||||
ExchangeName: "zhios.doushen.user.register.exchange", | ExchangeName: "zhios.doushen.user.register.exchange", | ||||
Name: "zhios_doushen_user_register_official", | |||||
Name: "zhios_doushen_user_register_my_fans", | |||||
Type: DirectQueueType, | Type: DirectQueueType, | ||||
IsPersistent: false, | IsPersistent: false, | ||||
RoutKey: "official", | |||||
BindKey: "official", | |||||
ConsumeFunName: "DouShenUserRegisterConsumeForOfficial", | |||||
RoutKey: "my_fans", | |||||
BindKey: "my_fans", | |||||
ConsumeFunName: "DouShenUserRegisterConsumeForMyFans", | |||||
}, | }, | ||||
{ | { | ||||
ExchangeName: "zhios.doushen.user.register.exchange", | ExchangeName: "zhios.doushen.user.register.exchange", | ||||
Name: "zhios_doushen_user_register_operation_center", | Name: "zhios_doushen_user_register_operation_center", | ||||
Type: DirectQueueType, | Type: DirectQueueType, | ||||
IsPersistent: false, | IsPersistent: false, | ||||
RoutKey: "official", | |||||
BindKey: "official", | |||||
ConsumeFunName: "DouShenUserRegisterConsumeForOfficial", | |||||
RoutKey: "operation_center", | |||||
BindKey: "operation_center", | |||||
ConsumeFunName: "DouShenUserRegisterConsumeForOperationCenter", | |||||
}, | }, | ||||
{ | { | ||||
ExchangeName: "zhios.doushen.user.register.exchange", | ExchangeName: "zhios.doushen.user.register.exchange", | ||||
Name: "zhios_doushen_user_register_official", | |||||
Name: "zhios_doushen_user_register_my_recommender", | |||||
Type: DirectQueueType, | Type: DirectQueueType, | ||||
IsPersistent: false, | IsPersistent: false, | ||||
RoutKey: "official", | |||||
BindKey: "official", | |||||
ConsumeFunName: "DouShenUserRegisterConsumeForOfficial", | |||||
RoutKey: "my_recommender", | |||||
BindKey: "my_recommender", | |||||
ConsumeFunName: "DouShenUserRegisterConsumeForMyRecommender", | |||||
}, | }, | ||||
{ | { | ||||
ExchangeName: "zhios.doushen.user.register.exchange", | ExchangeName: "zhios.doushen.user.register.exchange", | ||||