From 805a8d890c785383921419181305911cc5d831d6 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Mar 2026 12:58:43 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=B7=BB=E5=8A=A0=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/FeishuNotificationService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/app/service/FeishuNotificationService.php b/backend/app/service/FeishuNotificationService.php index 80ac9d7..9c91239 100644 --- a/backend/app/service/FeishuNotificationService.php +++ b/backend/app/service/FeishuNotificationService.php @@ -40,11 +40,15 @@ class FeishuNotificationService */ public function setAppByUser(int $userId): self { + error_log("🔧 setAppByUser 被调用: userId={$userId}"); + $user = \app\model\User::find($userId); if (!$user) { throw new Exception('用户不存在'); } + error_log("🔧 setAppByUser: 找到用户, company_id={$user->company_id}, feishu_app_id={$user->feishu_app_id}"); + $this->setCompany($user->company_id); // 使用用户最后登录的应用 @@ -681,6 +685,8 @@ class FeishuNotificationService */ public function updateActorMessageCard(int $orderId, int $nodeId, int $actorUserId, string $status): bool { + error_log("🔧 updateActorMessageCard 被调用: order_id={$orderId}, node_id={$nodeId}, actorUserId={$actorUserId}, status={$status}"); + try { // 获取该操作人的消息 $message = \app\model\FeishuMessage::where('order_id', $orderId)