feat: 消息改为所有人可见
All checks were successful
CI Monitor CI/CD / build-image (push) Successful in 21s
CI Monitor CI/CD / deploy (push) Successful in 25s

This commit is contained in:
zhaoyingbo 2024-03-09 09:04:33 +00:00
parent f387806924
commit f66efef4ba

View File

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