From ff957e298e57dbd8694c5b71041783b8dc6dbba2 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 17 Aug 2022 12:24:18 +0800 Subject: [PATCH] oss --- app/Console/Commands/OssCopy.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/Console/Commands/OssCopy.php b/app/Console/Commands/OssCopy.php index bc84e10c..3a40c954 100644 --- a/app/Console/Commands/OssCopy.php +++ b/app/Console/Commands/OssCopy.php @@ -51,18 +51,18 @@ class OssCopy extends Command public function handle() { $list = [ - // ['name' => '用户', 'list' => UserInfo::get(), 'attributes' => ['avatar']], - // ['name' => '文章', 'list' => Article::get(), 'attributes' => ['cover', 'content']], - // ['name' => '广告', 'list' => Ad::get(), 'attributes' => ['image']], - // ['name' => '门店', 'list' => Store::get(), 'attributes' => ['image']], + ['name' => '用户', 'list' => UserInfo::get(), 'attributes' => ['avatar']], + ['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' => '商品分类', 'list' => ProductCategory::get(), 'attributes' => ['icon']], - // ['name' => '商品特点', 'list' => ProductFeature::get(), 'attributes' => ['icon']], - // ['name' => '购买须知', 'list' => ProductBuynote::get(), 'attributes' => ['content']], - // ['name' => '分享背景', 'list' => ShareBg::get(), 'attributes' => ['image']], - // ['name' => '抽奖活动', 'list' => DrawActivity::get(), 'attributes' => ['desc', 'bg_image']], - // ['name' => '抽奖奖品', 'list' => DrawPrize::get(), 'attributes' => ['icon']], + ['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']], + ['name' => '分享背景', 'list' => ShareBg::get(), 'attributes' => ['image']], + ['name' => '抽奖活动', 'list' => DrawActivity::get(), 'attributes' => ['desc', 'bg_image']], + ['name' => '抽奖奖品', 'list' => DrawPrize::get(), 'attributes' => ['icon']], ]; foreach($list as $item) {