diff --git a/app/command/SyncGoodsToEs.php b/app/command/SyncGoodsToEs.php index 829ef6c0..3b8a1fea 100644 --- a/app/command/SyncGoodsToEs.php +++ b/app/command/SyncGoodsToEs.php @@ -31,12 +31,11 @@ class SyncGoodsToEs extends Command $goodsService->batchCreateGoodsCategory($goods_id); } - // try { - // $goodsService->batchCreateData(); - // }catch (\Exception $e) { - // $output->writeln($e->getMessage()); - // } - //$goodsService->batchCreateGoods(); + try { + $goodsService->batchCreateData(); + }catch (\Exception $e) { + $output->writeln($e->getMessage()); + } }