1
This commit is contained in:
parent
1f40838320
commit
94fd06c6ab
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user