From 94fd06c6abfe40dbbd445bb02c875c08afd1a7b2 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Fri, 7 Aug 2026 00:22:37 +0800 Subject: [PATCH] 1 --- application/index/library/new_wms/func/Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/index/library/new_wms/func/Base.php b/application/index/library/new_wms/func/Base.php index 208d4fd..263744f 100644 --- a/application/index/library/new_wms/func/Base.php +++ b/application/index/library/new_wms/func/Base.php @@ -113,7 +113,7 @@ abstract class Base $result = json_decode($response, true); if ($result === null && json_last_error() !== JSON_ERROR_NONE) { - \think\Log::error("[WmsFunc] {$method} 响应 JSON 解析失败: {$response}"); + \think\Log::error("[WmsFunc] {$method} 响应解析失败\nURL: {$url}\nBody: {$bodyJson}\nResponse: {$response}"); return [ 'code' => -1, 'msg' => '响应解析失败', @@ -126,7 +126,7 @@ abstract class Base return $result; } catch (\Exception $e) { - \think\Log::error("[WmsFunc] {$method} 请求异常: " . $e->getMessage()); + \think\Log::error("[WmsFunc] {$method} 请求异常: " . $e->getMessage() . "\nURL: {$url}\nBody: {$bodyJson}"); return [ 'code' => -1, 'msg' => '请求异常: ' . $e->getMessage(),