From 62d938394cad842e116facf8d06e96748ed4ea0a Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 7 Aug 2023 14:25:30 +0800 Subject: [PATCH] =?UTF-8?q?1v1=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron/group_cron/create_group.go | 3 ++- domain/service/group_s/group_op.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cron/group_cron/create_group.go b/cron/group_cron/create_group.go index 5f41c79..a0db83a 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 32210d9..2670ae9 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, -- 2.22.0