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