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)