fix: 在approve函数中初始化notificationService

This commit is contained in:
root
2026-03-01 13:05:23 +08:00
parent d992d31039
commit b61495edb9
+5
View File
@@ -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));