作者 刘锟

update

... ... @@ -95,17 +95,8 @@ class CosService
],
]);
$opts = [
'http' => [
'header' => 'User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0'
],
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
]
];
try {
$body = file_get_contents($file_url,false,stream_context_create($opts));
$body = curl_c($file_url,false);
}catch (\Exception $e){
return '';
}
... ...