From 33c30077c294e695bc4c322e7cbaf7c28685389c Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Fri, 29 Jul 2022 14:48:40 +0800 Subject: [PATCH] OssCopyCommand --- app/Console/Commands/OssCopy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/OssCopy.php b/app/Console/Commands/OssCopy.php index 8f6716ab..f22c0946 100644 --- a/app/Console/Commands/OssCopy.php +++ b/app/Console/Commands/OssCopy.php @@ -135,7 +135,7 @@ class OssCopy extends Command $client = new OssClient(data_get($config, 'access_id'), data_get($config, 'access_key'), data_get($config, 'endpoint')); $baseUrl = 'https://zcs-test.oss-cn-chengdu.aliyuncs.com/'; $newUrl = 'https://jiqu-library.oss-cn-chengdu.aliyuncs.com/'; - $oldBucket = data_get($config, 'bucket'); + $oldBucket = 'zcs-test'; if (Str::startsWith($url, $baseUrl)) { $path = substr($url, strlen($baseUrl)); $bucket = 'jiqu-library';