作者 lyh

gx

@@ -146,9 +146,11 @@ class CNoticeController extends BaseController @@ -146,9 +146,11 @@ 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 )); 150 ));
150 - curl_exec($curl); 151 + $response = curl_exec($curl);
151 curl_close($curl); 152 curl_close($curl);
  153 + return $response;
152 } 154 }
153 155
154 /** 156 /**