WARCH1 实现企微审批最小历史留存
这个提交包含在:
@@ -316,6 +316,7 @@ async function fetchWecomApprovalDetail({
|
||||
spNo,
|
||||
fetchImpl = fetch,
|
||||
timeoutMs = config?.wecomRequestTimeoutMs ?? 10000,
|
||||
includeRawPayload = false,
|
||||
}) {
|
||||
const resolvedSpNo = toSafeString(spNo, 160);
|
||||
if (!resolvedSpNo) {
|
||||
@@ -359,6 +360,7 @@ async function fetchWecomApprovalDetail({
|
||||
message: null,
|
||||
tokenSource: token.tokenSource,
|
||||
response: sanitizeApprovalApiResponse(result.payload),
|
||||
rawPayload: includeRawPayload ? result.payload : undefined,
|
||||
templateId: toSafeString(result.payload?.info?.template_id ?? result.payload?.info?.templateId, 160),
|
||||
spName: toSafeString(result.payload?.info?.sp_name ?? result.payload?.info?.spName, 120),
|
||||
summary: summarizeApprovalPayload(result.payload),
|
||||
|
||||
在新工单中引用
屏蔽一个用户