Merge feature/mzl-dev: 修复json_decode问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user