From 3d1c2faf2ad01f5f285dae9270d88a25732346d4 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 17 Aug 2022 09:46:35 +0800 Subject: [PATCH] oss --- app/Console/Commands/OssCopy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/OssCopy.php b/app/Console/Commands/OssCopy.php index 0606f953..5728adf1 100644 --- a/app/Console/Commands/OssCopy.php +++ b/app/Console/Commands/OssCopy.php @@ -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/';