|
...
|
...
|
@@ -104,7 +104,11 @@ class CosService |
|
|
|
'verify_peer_name' => false,
|
|
|
|
]
|
|
|
|
];
|
|
|
|
$body = file_get_contents($file_url,false,stream_context_create($opts));
|
|
|
|
try {
|
|
|
|
$body = file_get_contents($file_url,false,stream_context_create($opts));
|
|
|
|
}catch (\Exception $e){
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
$cosClient->putObject([
|
...
|
...
|
|