HRWD-0..9 实现人事生命周期企微通讯录同步
这个提交包含在:
@@ -50,9 +50,10 @@ async function getWecomAppAccessToken({ config, timeoutMs = 5000, fetchImpl = fe
|
||||
const corpId = toSafeString(config?.wecomCorpId, 128);
|
||||
const agentId = toSafeString(config?.wecomAgentId, 64);
|
||||
const agentSecret = toSafeString(config?.wecomAgentSecret, 500);
|
||||
const requireAgentId = config?.wecomRequireAgentId !== false;
|
||||
const missing = [];
|
||||
if (!corpId) missing.push('WECOM_CORP_ID');
|
||||
if (!agentId) missing.push('WECOM_AGENT_ID');
|
||||
if (requireAgentId && !agentId) missing.push('WECOM_AGENT_ID');
|
||||
if (!agentSecret) missing.push('WECOM_AGENT_SECRET');
|
||||
if (missing.length) {
|
||||
return buildMissingConfigResult(missing);
|
||||
|
||||
在新工单中引用
屏蔽一个用户