From da1f129a50ec0ca827296a6b53347d77ffe6ec02 Mon Sep 17 00:00:00 2001 From: lqmac Date: Wed, 23 Oct 2024 00:52:29 +0800 Subject: [PATCH] 1 --- app/command/SyncCategory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {