正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -119,7 +119,7 @@ if (!function_exists('http_get')) { | @@ -119,7 +119,7 @@ if (!function_exists('http_get')) { | ||
| 119 | $access_txt = curl_exec($ch1); | 119 | $access_txt = curl_exec($ch1); |
| 120 | if (curl_errno($ch1)) { | 120 | if (curl_errno($ch1)) { |
| 121 | $error_message = curl_error($ch1); | 121 | $error_message = curl_error($ch1); |
| 122 | - errorLog('请求失败', $url, $error_message); | 122 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($error_message, true) . PHP_EOL, FILE_APPEND); |
| 123 | } | 123 | } |
| 124 | curl_close($ch1); | 124 | curl_close($ch1); |
| 125 | return json_decode($access_txt, true); | 125 | return json_decode($access_txt, true); |
-
请 注册 或 登录 后发表评论