From f66efef4ba246a9cceb94c98ee6fdd342ab349d0 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Sat, 9 Mar 2024 09:04:33 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B6=88=E6=81=AF=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=89=80=E6=9C=89=E4=BA=BA=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/manageRobot/index.ts | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/controllers/manageRobot/index.ts b/controllers/manageRobot/index.ts index 149bfd3..ad07a92 100644 --- a/controllers/manageRobot/index.ts +++ b/controllers/manageRobot/index.ts @@ -97,19 +97,23 @@ const getProjDiffInfo = async () => { return group.slice(0, 5); }; -const getRobotMsg = async () => JSON.stringify({ - type: "template", - data: { - template_id: "ctp_AAyVLS6Q37cL", - template_variable: { - ...(await getNewCicdStatus()), - ...(await getStatisticsInfo()), - group_table: await getProjDiffInfo(), +const getRobotMsg = async () => + JSON.stringify({ + type: "template", + data: { + config: { + update_multi: true, + }, + template_id: "ctp_AAyVLS6Q37cL", + template_variable: { + ...(await getNewCicdStatus()), + ...(await getStatisticsInfo()), + group_table: await getProjDiffInfo(), + }, }, - }, -}) + }); -const sendRobotMsg = async () => await service.sendMessage(await getRobotMsg()) +const sendRobotMsg = async () => await service.sendMessage(await getRobotMsg()); const manageRobot = { getRobotMsg,