加固既有生产部署流程(07-27-yang-jun-reimbursement-readiness)

这个提交包含在:
2026-08-01 18:25:20 +08:00
父节点 5dac336fbf
当前提交 07de198b51
共修改 15 个文件,包含 375 行新增和 34 行删除
+7 -7
查看文件
@@ -31,7 +31,7 @@ function evaluateWecom(config) {
return {
state: 'degraded',
detail: `企业微信基础配置已启用,但入口=${config.wecomEntryEnabled ? 'on' : 'off'} oauth=${config.wecomOauthEnabled ? 'on' : 'off'}`,
checks: [`corpId=${config.wecomCorpId}`, `agentId=${config.wecomAgentId}`],
checks: ['corpId=present', 'agentId=present'],
};
}
@@ -39,9 +39,9 @@ function evaluateWecom(config) {
state: 'ready',
detail: '企业微信入口与免登配置齐全',
checks: [
`corpId=${config.wecomCorpId}`,
`agentId=${config.wecomAgentId}`,
`redirectUri=${config.wecomRedirectUri}`,
'corpId=present',
'agentId=present',
'redirectUri=present',
`pcWebLogin=${config.wecomPcWebLoginEnabled ? 'on' : 'off'}`,
],
};
@@ -66,7 +66,7 @@ function evaluateEmail(config) {
return {
state: 'ready',
detail: 'SMTP 基础配置齐全(仅做配置契约校验,不发真实邮件)',
checks: [`from=${config.emailFrom}`, `host=${config.smtpHost}`, `port=${config.smtpPort}`, `secure=${config.smtpSecure}`],
checks: ['from=present', 'host=present', 'port=valid', `secure=${config.smtpSecure}`],
};
}
@@ -88,7 +88,7 @@ function evaluateOcr(config) {
return {
state: 'ready',
detail: '腾讯 OCR 配置齐全',
checks: [`provider=${provider}`, `region=${config.tencentOcrRegion}`],
checks: [`provider=${provider}`, 'credentials=present', 'region=present'],
};
}
@@ -112,7 +112,7 @@ function evaluateBridge(config) {
return {
state: 'ready',
detail: '消息回流桥接配置齐全',
checks: [`appOrigin=${config.appOrigin}`],
checks: ['appOrigin=present'],
};
}