oss
parent
b8d17bac34
commit
da854510d5
|
|
@ -120,10 +120,10 @@ class OssCopy extends Command
|
|||
$client = new OssClient(data_get($config, 'access_id'), data_get($config, 'access_key'), data_get($config, 'endpoint'));
|
||||
$baseUrl = 'https://jiqu-library.oss-cn-chengdu.aliyuncs.com/';
|
||||
$newUrl = 'https://jiqu-libs.oss-cn-chengdu.aliyuncs.com/';
|
||||
$oldBucket = 'zcs-test';
|
||||
$oldBucket = 'jiqu-library';
|
||||
if (Str::startsWith($url, $baseUrl)) {
|
||||
$path = substr($url, strlen($baseUrl));
|
||||
$bucket = 'jiqu-library';
|
||||
$bucket = 'jiqu-libs';
|
||||
$client->copyObject($oldBucket, $path, $bucket, $path);
|
||||
|
||||
return $newUrl . $path;
|
||||
|
|
|
|||
Loading…
Reference in New Issue