debug: 添加自审批检查日志

This commit is contained in:
root
2026-02-28 14:33:35 +08:00
parent 6eed14933a
commit 08d588acce
@@ -145,7 +145,9 @@ class FeishuNotificationService
// 检查是否是申请人自己 - 发送文本消息而不是卡片
$applicantId = $params['applicant_id'] ?? null;
if ($applicantId && $applicantId == $userId) {
error_log("🔍 自审批检查: applicant_id=" . ($applicantId ?? 'null') . ", user_id={$userId}, match=" . (($applicantId == $userId) ? 'true' : 'false'));
if ($applicantId && (int)$applicantId === (int)$userId) {
error_log("🔄 检测到自审批,发送文本通知而不是卡片");
return $this->sendTextNotification($feishuUserId, $params);
}