正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -146,9 +146,10 @@ class CNoticeController extends BaseController | @@ -146,9 +146,10 @@ class CNoticeController extends BaseController | ||
| 146 | CURLOPT_FOLLOWLOCATION => true, | 146 | CURLOPT_FOLLOWLOCATION => true, |
| 147 | CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, | 147 | CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, |
| 148 | CURLOPT_CUSTOMREQUEST => 'GET', | 148 | CURLOPT_CUSTOMREQUEST => 'GET', |
| 149 | - CURLOPT_HTTPHEADER => ["charset=utf-8"] | 149 | + CURLOPT_HTTPHEADER => [] |
| 150 | )); | 150 | )); |
| 151 | $response = curl_exec($curl); | 151 | $response = curl_exec($curl); |
| 152 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($response, true) . PHP_EOL, FILE_APPEND); | ||
| 152 | curl_close($curl); | 153 | curl_close($curl); |
| 153 | return $response; | 154 | return $response; |
| 154 | } | 155 | } |
-
请 注册 或 登录 后发表评论