6
0
Fork 0
panliang 2022-08-17 09:46:35 +08:00
parent 1f294eafa5
commit 3d1c2faf2a
1 changed files with 3 additions and 3 deletions

View File

@ -55,8 +55,8 @@ class OssCopy extends Command
// ['name' => '文章', 'list' => Article::get(), 'attributes' => ['cover', 'content']],
// ['name' => '广告', 'list' => Ad::get(), 'attributes' => ['image']],
// ['name' => '门店', 'list' => Store::get(), 'attributes' => ['image']],
// ['name' => '商品SPU', 'list' => ProductSpu::get(), 'attributes' => ['cover', 'images', 'media', 'description']],
['name' => '商品SKU', 'list' => ProductSku::get(), 'attributes' => ['cover', 'images', 'media', 'description']],
['name' => '商品SPU', 'list' => ProductSpu::get(), 'attributes' => ['cover', 'images', 'media', 'description']],
// ['name' => '商品SKU', 'list' => ProductSku::get(), 'attributes' => ['cover', 'images', 'media', 'description']],
// ['name' => '商品分类', 'list' => ProductCategory::get(), 'attributes' => ['icon']],
// ['name' => '商品特点', 'list' => ProductFeature::get(), 'attributes' => ['icon']],
// ['name' => '购买须知', 'list' => ProductBuynote::get(), 'attributes' => ['content']],
@ -119,7 +119,7 @@ class OssCopy extends Command
if ($url) {
$config = config('filesystems.disks.aliyun');
$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/';
$baseUrl = 'http://zcs-test.oss-cn-chengdu.aliyuncs.com/';
$oldBucket = 'zcs-test';
$newUrl = 'https://jiqu-libs.oss-cn-chengdu.aliyuncs.com/';