WACP3R 自动发现并复跑审批补偿拉取

这个提交包含在:
2026-05-19 20:20:14 +08:00
父节点 37ac4f592f
当前提交 509a6bed62
共修改 18 个文件,包含 502 行新增和 64 行删除
@@ -98,6 +98,7 @@ function summarizeApprovalPayload(payload) {
return {
spNoPrefix: maskApprovalIdentifier(info.sp_no ?? payload?.sp_no),
templateIdPrefix: maskApprovalIdentifier(info.template_id),
spName: toSafeString(info.sp_name ?? info.spName, 120) || null,
spStatus: info.sp_status == null ? null : toSafeString(info.sp_status, 40),
applyFieldCount: contents.length,
applyFieldTypeCounts: countBy(contents, controlType),
@@ -358,6 +359,8 @@ async function fetchWecomApprovalDetail({
message: null,
tokenSource: token.tokenSource,
response: sanitizeApprovalApiResponse(result.payload),
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),
};
} catch (error) {