作者 lyh

gx

@@ -67,7 +67,7 @@ if (!function_exists('http_post')) { @@ -67,7 +67,7 @@ if (!function_exists('http_post')) {
67 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 67 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
68 $res = curl_exec($ch); 68 $res = curl_exec($ch);
69 if (curl_errno($ch)) { 69 if (curl_errno($ch)) {
70 - \Illuminate\Support\Facades\Log::info(print_r(curl_errno($ch), 1), 'debug---1'); 70 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
71 } 71 }
72 curl_close($ch); 72 curl_close($ch);
73 return json_decode($res, true); 73 return json_decode($res, true);