正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -49,6 +49,7 @@ class CNoticeController extends BaseController | @@ -49,6 +49,7 @@ class CNoticeController extends BaseController | ||
| 49 | $this->updateMinorLanguages(); | 49 | $this->updateMinorLanguages(); |
| 50 | } | 50 | } |
| 51 | $urlStr = $this->getString($this->param['type'],$this->param['page']); | 51 | $urlStr = $this->getString($this->param['type'],$this->param['page']); |
| 52 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($urlStr, true) . PHP_EOL, FILE_APPEND); | ||
| 52 | $this->curlGet($urlStr); | 53 | $this->curlGet($urlStr); |
| 53 | $this->response('success'); | 54 | $this->response('success'); |
| 54 | } | 55 | } |
| @@ -146,7 +147,7 @@ class CNoticeController extends BaseController | @@ -146,7 +147,7 @@ class CNoticeController extends BaseController | ||
| 146 | CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, | 147 | CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, |
| 147 | CURLOPT_CUSTOMREQUEST => 'GET', | 148 | CURLOPT_CUSTOMREQUEST => 'GET', |
| 148 | )); | 149 | )); |
| 149 | - $response = curl_exec($curl); | 150 | + curl_exec($curl); |
| 150 | curl_close($curl); | 151 | curl_close($curl); |
| 151 | } | 152 | } |
| 152 | 153 |
-
请 注册 或 登录 后发表评论