修复加签功能

This commit is contained in:
yubaolee 2024-09-29 11:55:03 +08:00
parent 49de0f6f8e
commit 849a80a512
2 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,10 @@ namespace OpenAuth.App
public string[] GetApproverIds(QueryApproverReq req)
{
var approvers = GetApprovers(req);
if (approvers == null)
{
return Array.Empty<string>();
}
//否则并行且/并行或都是返回所有加签人
return approvers.Select(u => u.ApproverId).ToArray();
}

View File

@ -422,7 +422,7 @@ namespace OpenAuth.App
ActivityId = flowInstance.ActivityId
});
var approverInfo = approvers.Find(u => u.ApproverId == user.Id);
var approverInfo = approvers?.Find(u => u.ApproverId == user.Id);
if (approverInfo != null)
{
//如果是加签,则调整加签状态