作者 lyh

gx

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