lqmac 1 month ago
parent badbfb7511
commit da1f129a50
  1. 2
      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) {

Loading…
Cancel
Save