From 5b11cb728fe8f2188de1159f9eea3093340277ed Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Tue, 27 Jan 2026 18:03:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=201.=E8=B0=83=E6=95=B4=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=202.=E8=A7=A3=E5=86=B3=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=203.=E5=BB=BA=E7=BE=A4=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E4=BA=BA=E5=A2=9E=E5=8A=A0@=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config_env.yaml | 6 +++--- internal/biz/ding_talk_bot.go | 2 ++ internal/biz/group_config.go | 20 ++++++++++---------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/config/config_env.yaml b/config/config_env.yaml index 3f2c73f..a1b552d 100644 --- a/config/config_env.yaml +++ b/config/config_env.yaml @@ -5,9 +5,9 @@ server: ollama: base_url: "http://192.168.6.115:11434" - model: "qwen3:8b" - generate_model: "deepseek-v3.2:cloud" - mapping_model: "qwen3:8b" + model: "qwen3-coder:480b-cloud" + generate_model: "qwen3-coder:480b-cloud" + mapping_model: "deepseek-v3.2:cloud" vl_model: "qwen2.5vl:7b" timeout: "120s" level: "info" diff --git a/internal/biz/ding_talk_bot.go b/internal/biz/ding_talk_bot.go index b832256..0d8dd0f 100644 --- a/internal/biz/ding_talk_bot.go +++ b/internal/biz/ding_talk_bot.go @@ -61,6 +61,7 @@ func NewDingTalkBotBiz( handle *do.Handle, botConfigImpl *impl.BotConfigImpl, botGroupImpl *impl.BotGroupImpl, + botGroupConfigImpl *impl.BotGroupConfigImpl, dingTalkUser *dingtalk.User, chatHis *impl.BotChatHisImpl, reportDailyCacheImpl *impl.ReportDailyCacheImpl, @@ -81,6 +82,7 @@ func NewDingTalkBotBiz( dingTalkUser: dingTalkUser, groupConfigBiz: groupConfigBiz, botGroupImpl: botGroupImpl, + botGroupConfigImpl: botGroupConfigImpl, toolManager: toolManager, chatHis: chatHis, conf: conf, diff --git a/internal/biz/group_config.go b/internal/biz/group_config.go index 2aecd0e..9b7cf0b 100644 --- a/internal/biz/group_config.go +++ b/internal/biz/group_config.go @@ -609,15 +609,15 @@ func (g *GroupConfigBiz) shouldCreateIssueHandlingGroup(ctx context.Context, rec CallbackType: tea.String("STREAM"), CardData: &card_1_0.CreateAndDeliverRequestCardData{ CardParamMap: map[string]*string{ - "title": tea.String("创建群聊提醒"), - "content": tea.String(fmt.Sprintf("**确认创建群聊?**\n\n将邀请以下成员加入群聊:\n\n%s", issueOwnerStr)), - "remark": tea.String("注:如若无需,忽略即可"), - "button_left": tea.String("创建群聊"), - "button_right": tea.String("忽略"), - "action_id": tea.String("create_group"), - "button_display": tea.String("true"), - "group_scope": tea.String(strings.TrimSpace(rec.UserContent.Text)), - "_CARD_DEBUG_TOOL_ENTRY": tea.String(g.conf.Dingtalk.Card.DebugToolEntryShow), // 调试字段 + "title": tea.String("创建群聊提醒"), + "content": tea.String(fmt.Sprintf("**确认创建群聊?**\n\n将邀请以下成员加入群聊:\n\n%s", issueOwnerStr)), + "remark": tea.String("注:如若无需,忽略即可"), + "button_left": tea.String("创建群聊"), + "button_right": tea.String("忽略"), + "action_id": tea.String("create_group"), + "button_display": tea.String("true"), + "group_scope": tea.String(strings.TrimSpace(rec.UserContent.Text)), + // "_CARD_DEBUG_TOOL_ENTRY": tea.String(g.conf.Dingtalk.Card.DebugToolEntryShow), // 调试字段 }, }, ImGroupOpenSpaceModel: &card_1_0.CreateAndDeliverRequestImGroupOpenSpaceModel{ @@ -626,7 +626,7 @@ func (g *GroupConfigBiz) shouldCreateIssueHandlingGroup(ctx context.Context, rec OpenSpaceId: tea.String("dtv1.card//im_group." + callback.ConversationId), ImGroupOpenDeliverModel: &card_1_0.CreateAndDeliverRequestImGroupOpenDeliverModel{ RobotCode: tea.String(callback.RobotCode), - Recipients: userIds, + Recipients: append(userIds, tea.String(callback.SenderStaffId)), }, }) if err != nil {