This commit is contained in:
2025-09-09 21:07:34 +08:00
parent 6f051806a5
commit 3873238a62
9 changed files with 759 additions and 12 deletions
@@ -136,7 +136,7 @@ class ApprovalFlowService
if ($outcome === 'pending') {
// return ['status' => 'step_pending'];
return ['status' => 'step_pending', 'msg' => '步骤待定'];
return ['status' => 'step_pending', 'msg' => '审批待定'];
}
// 3) 有结论:关闭本步其余 pending
@@ -386,10 +386,11 @@ class ApprovalFlowService
$resolved = array_unique(array_filter(array_map('intval', $resolved)));
if ($avoidSelf) {
$resolved = array_values(array_filter($resolved, fn($id) => $id !== (int)$instance->initiator_id));
// $resolved = array_values(array_filter($resolved, fn($id) => $id !== (int)$instance->initiator_id));
$resolved = array_values($resolved);
}
if (empty($resolved)) {
throw new BusinessException("步骤未解析到任何审批人");
throw new BusinessException("未解析到任何审批人");
}
return $resolved;
}