fix: 在approve函数中初始化notificationService
This commit is contained in:
@@ -77,6 +77,11 @@ class ApprovalService
|
|||||||
throw new \Exception('当前状态无法审批');
|
throw new \Exception('当前状态无法审批');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 确保 notificationService 已初始化
|
||||||
|
if (!$this->notificationService) {
|
||||||
|
$this->notificationService = new FeishuNotificationService();
|
||||||
|
}
|
||||||
|
|
||||||
$currentNodeIds = $order->current_nodes ?? [];
|
$currentNodeIds = $order->current_nodes ?? [];
|
||||||
error_log("🔍 当前节点 IDs: " . json_encode($currentNodeIds));
|
error_log("🔍 当前节点 IDs: " . json_encode($currentNodeIds));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user