diff --git a/app/command/SyncCategory.php b/app/command/SyncCategory.php index f2b5d2ff..d269d904 100644 --- a/app/command/SyncCategory.php +++ b/app/command/SyncCategory.php @@ -51,7 +51,7 @@ class SyncCategory extends Command public function copyCategory(int $new_store_id, $is_update_image = 0){ $store_id = 0; $model = new CategoryModel; - $list = $model->getList(['store_id' => self::DEFAULT_STORE_ID]); + $list = $model->getList(['store_id' => self::DEFAULT_STORE_ID,'status' => 1]); // var_dump($list); // exit(); if (!$list) {