diff --git a/cron/group_cron/create_group.go b/cron/group_cron/create_group.go index 5f41c79a7997194c63c2770278edb570ef3cd035..a0db83a5229da21d021a8ee69723f2bfb6cae11a 100644 --- a/cron/group_cron/create_group.go +++ b/cron/group_cron/create_group.go @@ -4,6 +4,7 @@ import ( "git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/resource/config" "github.com/robfig/cron" + "hilo-group/_const/enum/group_e" "hilo-group/domain/service/group_s" ) @@ -19,7 +20,7 @@ func CreateGroup() { if config.AppIsRelease() { userId = 41 } - err := group_s.NewGroupService(model.MyContext).CreateGroupMulByUid(userId, 10) + err := group_s.NewGroupService(model.MyContext).CreateGroupMulByUid(userId, 10, group_e.TwoMicNumType) if err != nil { model.Log.Errorf("CreateGroupMulByUid fail:%v", err) } diff --git a/domain/service/group_s/group_op.go b/domain/service/group_s/group_op.go index 32210d99b5153364bb3aaba0c568150dd5573392..2670ae9f0dc281be5172da018937f18e2fba395d 100644 --- a/domain/service/group_s/group_op.go +++ b/domain/service/group_s/group_op.go @@ -514,7 +514,7 @@ func dealActDataAfterEnterRoom(myContext *mycontext.MyContext, userId, rideId ui } // 创建房间,慎用 -func (s *GroupService) CreateGroupMulByUid(userId uint64, num int) error { +func (s *GroupService) CreateGroupMulByUid(userId uint64, num int, micNumType group_e.GroupMicNumType) error { model := domain.CreateModel(s.svc.CtxAndDb) if lock := redisCli.Lock(group_k.GetGroupLockKey(userId), time.Second*5); !lock { @@ -603,7 +603,7 @@ func (s *GroupService) CreateGroupMulByUid(userId uint64, num int) error { ChannelId: channelId, MicOn: true, LoadHistory: false, - MicNumType: group_e.TenMicNumType, + MicNumType: micNumType, TouristMic: 1, TouristSendMsg: 1, TouristSendPic: 1,