From 823d62728db5ae781c5b86c67d89588f946002b1 Mon Sep 17 00:00:00 2001 From: haomingming Date: Mon, 22 Dec 2025 14:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/Prescription/Prescription.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extend/Prescription/Prescription.php b/extend/Prescription/Prescription.php index cb1ff4e..75dd198 100644 --- a/extend/Prescription/Prescription.php +++ b/extend/Prescription/Prescription.php @@ -293,25 +293,25 @@ class Prescription // 记录请求日志(隐藏敏感信息) $logArg = $arg; - // Log::getInstance()->info("处方平台HTTP请求:" . $path . ",请求参数:" . json_encode($logArg,JSON_UNESCAPED_UNICODE)); + Log::getInstance()->info("处方平台HTTP请求:" . $path . ",请求参数:" . json_encode($logArg,JSON_UNESCAPED_UNICODE)); $response = $this->client->post($path, $arg); if ($response->getStatusCode() != '200'){ // 请求失败 $errorBody = $response->getBody()->getContents(); - // Log::getInstance()->error("处方平台HTTP请求失败,状态码:" . $response->getStatusCode() . ",错误信息:" . $errorBody); + Log::getInstance()->error("处方平台HTTP请求失败,状态码:" . $response->getStatusCode() . ",错误信息:" . $errorBody); throw new BusinessException($errorBody); } $body = json_decode($response->getBody(),true); if (empty($body)){ // 返回值为空 - // Log::getInstance()->error("处方平台HTTP请求返回值为空,路径:" . $path); + Log::getInstance()->error("处方平台HTTP请求返回值为空,路径:" . $path); throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR)); } - // Log::getInstance()->info("处方平台HTTP请求成功,路径:" . $path . ",返回数据:" . json_encode($body,JSON_UNESCAPED_UNICODE)); + Log::getInstance()->info("处方平台HTTP请求成功,路径:" . $path . ",返回数据:" . json_encode($body,JSON_UNESCAPED_UNICODE)); return $body; } } \ No newline at end of file