From b61495edb95c37a46bb5662380becd0c701496ee Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Mar 2026 13:05:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8approve=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=B8=AD=E5=88=9D=E5=A7=8B=E5=8C=96notificationService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/ApprovalService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/app/service/ApprovalService.php b/backend/app/service/ApprovalService.php index 93c938c..39ae0e1 100644 --- a/backend/app/service/ApprovalService.php +++ b/backend/app/service/ApprovalService.php @@ -77,6 +77,11 @@ class ApprovalService throw new \Exception('当前状态无法审批'); } + // 确保 notificationService 已初始化 + if (!$this->notificationService) { + $this->notificationService = new FeishuNotificationService(); + } + $currentNodeIds = $order->current_nodes ?? []; error_log("🔍 当前节点 IDs: " . json_encode($currentNodeIds));