Browse Source

Merge remote-tracking branch 'origin/master'

three
huangjiajun 1 year ago
parent
commit
9bd72e105a
5 changed files with 17 additions and 16 deletions
  1. +2
    -2
      consume/dou_shen_user_register_for_my_my_fans.go
  2. +1
    -1
      consume/dou_shen_user_register_for_my_my_recommender.go
  3. +1
    -1
      consume/dou_shen_user_register_for_official_consume.go
  4. +1
    -1
      consume/dou_shen_user_register_for_operation_center.go
  5. +12
    -11
      consume/md/consume_key.go

+ 2
- 2
consume/dou_shen_user_register_for_my_my_fans.go View File

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


+ 1
- 1
consume/dou_shen_user_register_for_my_my_recommender.go View File

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


+ 1
- 1
consume/dou_shen_user_register_for_official_consume.go View File

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


+ 1
- 1
consume/dou_shen_user_register_for_operation_center.go View File

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


+ 12
- 11
consume/md/consume_key.go View File

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


Loading…
Cancel
Save