作者 lyh

gx

@@ -34,7 +34,7 @@ class CosService @@ -34,7 +34,7 @@ class CosService
34 $cosClient->putObject([ 34 $cosClient->putObject([
35 'Bucket' => $cos['bucket'], 35 'Bucket' => $cos['bucket'],
36 'Key' => $key, 36 'Key' => $key,
37 - 'Body' => fopen(config('filesystems.disks.upload').$path.'/'.$filename, 'r'), 37 + 'Body' => fopen(config('filesystems.disks.upload')['root'].$path.'/'.$filename, 'r'),
38 ]); 38 ]);
39 return $key; 39 return $key;
40 } 40 }