作者 lyh

gx

@@ -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