From 4789b8f394281aa68e0d8a2624cfbcbf5a08cc3f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Feb 2026 14:42:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84json=5Fdecode=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - HttpClient::httpPost() 已经返回数组 - 删除 json_decode() 调用 --- backend/app/service/FeishuNotificationService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/app/service/FeishuNotificationService.php b/backend/app/service/FeishuNotificationService.php index f235e04..81f3c8a 100644 --- a/backend/app/service/FeishuNotificationService.php +++ b/backend/app/service/FeishuNotificationService.php @@ -643,11 +643,10 @@ class FeishuNotificationService error_log('📤 发送文本消息: feishu_user_id=' . $feishuUserId . ', text=' . substr($text, 0, 100)); - $response = \app\util\HttpClient::httpPost($apiUrl, $requestData, [ + $responseData = \app\util\HttpClient::httpPost($apiUrl, $requestData, [ 'Authorization: Bearer ' . $accessToken, ]); - $responseData = json_decode($response, true); $code = $responseData['code'] ?? -1; if ($code !== 0) {