|
@@ -44,7 +44,11 @@ if (!function_exists('http_post_json')) {
|
|
|
$output = curl_exec($ch);
|
|
|
curl_close($ch);
|
|
|
// 写日志
|
|
|
- \support\Log::info('模拟请求:',json_decode($output,true));
|
|
|
+ if (is_json($output)) {
|
|
|
+ \support\Log::info('模拟请求:', json_decode($output, true));
|
|
|
+ } else {
|
|
|
+ \support\Log::info('模拟请求,返回异常:', ['msg' => (string)$output]);
|
|
|
+ }
|
|
|
|
|
|
return $output;
|
|
|
}
|