diff --git a/app/Admin/Services/WorkFlowService.php b/app/Admin/Services/WorkFlowService.php index 071793e..8ca1fb1 100644 --- a/app/Admin/Services/WorkFlowService.php +++ b/app/Admin/Services/WorkFlowService.php @@ -199,7 +199,7 @@ class WorkFlowService extends BaseService ]); $log->update(['check_status' => CheckStatus::Processing]); - WorkflowCheckNext::dispatch($log); + WorkflowCheckNext::dispatch($log->withoutRelations()); // 自动审核通过 if ($this->authCheck($check->employee, $log)) { diff --git a/app/Listeners/CreateWorkflowCheckNextMessage.php b/app/Listeners/CreateWorkflowCheckNextMessage.php index d587a66..687098d 100644 --- a/app/Listeners/CreateWorkflowCheckNextMessage.php +++ b/app/Listeners/CreateWorkflowCheckNextMessage.php @@ -55,7 +55,7 @@ class CreateWorkflowCheckNextMessage implements ShouldQueue '审批提醒', "您有一条【{$subjectTypeText}】待审批。", $employees->all(), - ['workflow_log' => $event->workflowLog->withoutRelations()], + ['workflow_log' => $event->workflowLog], ); } }