This commit is contained in:
liufumingren 2026-08-07 00:22:37 +08:00
parent 1f40838320
commit 94fd06c6ab

View File

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