diff --git a/backend/app/service/FeishuNotificationService.php b/backend/app/service/FeishuNotificationService.php index 96223c2..ad6817c 100644 --- a/backend/app/service/FeishuNotificationService.php +++ b/backend/app/service/FeishuNotificationService.php @@ -563,7 +563,8 @@ class FeishuNotificationService $app = $this->getAppConfig(); $token = $this->getAccessToken(); - $content = json_encode(['card' => $card]); + // 使用 JSON_UNESCAPED_UNICODE 避免 emoji 被转义 + $content = json_encode(['card' => $card], JSON_UNESCAPED_UNICODE); error_log('📤 发送飞书消息: app_id=' . $app['app_id'] . ', feishu_user_id=' . $feishuUserId); error_log('📦 消息卡片: ' . json_encode($card, JSON_UNESCAPED_UNICODE)); @@ -713,7 +714,8 @@ class FeishuNotificationService "https://open.feishu.cn/open-apis/im/v1/messages/{$message->message_id}/update", [ 'msg_type' => 'interactive', - 'content' => json_encode(['card' => $updatedCard]), + // 使用 JSON_UNESCAPED_UNICODE 避免 emoji 被转义 + 'content' => json_encode(['card' => $updatedCard], JSON_UNESCAPED_UNICODE), ], [ 'Authorization: Bearer ' . $token,