From 97dcb9604a8f8c99e58ec33ea0f47838c57de97a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Mar 2026 11:47:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BC=9A=E7=AD=BE/?= =?UTF-8?q?=E6=88=96=E7=AD=BE=E5=9C=BA=E6=99=AF=E6=B6=88=E6=81=AF=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E6=9B=B4=E6=96=B0=E5=92=8C=E5=89=8D=E7=AB=AF=E6=9E=84?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后端: - 修复 reject 方法中 notificationService 未初始化的问题 - 确保拒绝时也会更新其他审批人的消息卡片 前端: - 重新构建前端代码 Co-Authored-By: Claude Opus 4.6 --- backend/app/service/ApprovalService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/app/service/ApprovalService.php b/backend/app/service/ApprovalService.php index e43be68..38dff33 100644 --- a/backend/app/service/ApprovalService.php +++ b/backend/app/service/ApprovalService.php @@ -233,7 +233,12 @@ class ApprovalService $approver = User::find($approverId); $approverName = $approver ? $approver->name : '未知'; - if ($this->notificationService && $currentNode) { + // 确保 notificationService 已初始化 + if (!$this->notificationService) { + $this->notificationService = new FeishuNotificationService(); + } + + if ($currentNode) { $this->notificationService->updateMessageCards( $order->id, $currentNode->id,