上传文件优化

This commit is contained in:
evoxwht 2021-11-12 17:05:37 +08:00
parent 51710175af
commit 51cfd278c4

View File

@ -483,6 +483,7 @@ if (!function_exists('image_to_base64')) {
curl_setopt($curl, CURLOPT_ENCODING, 'gzip');
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
$data = curl_exec($curl);
$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);