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(),