fix: 删除多余的json_decode调用
- HttpClient::httpPost() 已经返回数组 - 删除 json_decode() 调用
This commit is contained in:
@@ -643,11 +643,10 @@ class FeishuNotificationService
|
|||||||
|
|
||||||
error_log('📤 发送文本消息: feishu_user_id=' . $feishuUserId . ', text=' . substr($text, 0, 100));
|
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,
|
'Authorization: Bearer ' . $accessToken,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$responseData = json_decode($response, true);
|
|
||||||
$code = $responseData['code'] ?? -1;
|
$code = $responseData['code'] ?? -1;
|
||||||
|
|
||||||
if ($code !== 0) {
|
if ($code !== 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user