From 87f1531d2c2e2c0b939faf1d4c6cb63b040cc1a1 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Tue, 4 Aug 2026 16:45:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- corp/corp-account/index.js | 2 +- hlw/automation/index.js | 8 +++++--- hlw/diagnostic-record/index.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/corp/corp-account/index.js b/corp/corp-account/index.js index 26b158e..2f5de78 100644 --- a/corp/corp-account/index.js +++ b/corp/corp-account/index.js @@ -10,7 +10,7 @@ const TOKEN_EXPIRES = process.env.CONFIG_JWT_EXPIRE_TIME || "1d"; let db = null; // 自定义默认密码 -const defaultPassword = "zytzyy6789"; +const defaultPassword = "hnhlwyy123456789"; exports.main = async (event, mongodb, req) => { db = mongodb; switch (event.type) { diff --git a/hlw/automation/index.js b/hlw/automation/index.js index ddbb247..e74d748 100644 --- a/hlw/automation/index.js +++ b/hlw/automation/index.js @@ -327,7 +327,8 @@ function getFailureNotificationText(task, error) { const action = task.type === AUTOMATION_TYPES.OPEN_RX ? "自动开方" : "自动审方"; const reason = error && error.message ? error.message : "未知错误"; - return `${action}失败:${reason}`; + // return `${action}失败:${reason}`; + return reason } async function sendFailureNotification(db, task, error) { @@ -373,6 +374,7 @@ async function sendFailureNotification(db, task, error) { } const notification = getFailureNotificationText(task, error); + const ext = { reason: notification }; try { const result = await tencentIM( { @@ -385,9 +387,9 @@ async function sendFailureNotification(db, task, error) { { MsgType: "TIMCustomElem", MsgContent: { - Data: "AUTOMATIONFAIL", + Data: "AUTORXFAIL", Desc: "notification", - Ext: notification, + Ext: JSON.stringify(ext), }, }, ], diff --git a/hlw/diagnostic-record/index.js b/hlw/diagnostic-record/index.js index 7835092..a2cc1dd 100644 --- a/hlw/diagnostic-record/index.js +++ b/hlw/diagnostic-record/index.js @@ -1166,7 +1166,7 @@ async function attempToSendPassMessage(rx, corpId) { { MsgType: "TIMCustomElem", MsgContent: { - Data: "AUDIPASS", + Data: "AUDITPASS", Ext: JSON.stringify({ id: rx._id, orderId: rx.orderId,