|
...
|
...
|
@@ -57,7 +57,7 @@ class CosService |
|
|
|
'secretKey' => $cos['credentials']['secretKey'],
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
$imageUrl = $cosClient->getObjectUrl(config('app.cos_bucket'), basename($image_name));
|
|
|
|
$imageUrl = $cosClient->getObjectUrl($cos['bucket'], basename($image_name));
|
|
|
|
return response()->json([
|
|
|
|
'image_url' => $imageUrl,
|
|
|
|
]);
|
...
|
...
|
|