shish hace 2 años
padre
commit
eb4820c662
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      console/controllers/ProductController.php

+ 5 - 5
console/controllers/ProductController.php

@@ -32,7 +32,7 @@ class ProductController extends Controller
             util::stop();
         }
         $mainId = $shop->mainId ?? 0;
-        $productList = ProductClass::getAllByCondition(['mainId' => $mainId, 'classId' => ['in', [64844]]], null, '*');
+        $productList = ProductClass::getAllByCondition(['mainId' => $mainId, 'classId' => ['in', [64845, 64846]]], null, '*');
         if (!empty($productList)) {
             foreach ($productList as $post) {
                 $post['copy'] = 1;
@@ -71,10 +71,10 @@ class ProductController extends Controller
                 $d['py'] = stringUtil::py($d['name']);
                 \bizGhs\product\classes\ProductClass::addProduct($d, $shop);
 
-                $e = $post;
-                $e['name'] = $e['name'] . ' E级';
-                $e['py'] = stringUtil::py($e['name']);
-                \bizGhs\product\classes\ProductClass::addProduct($e, $shop);
+//                $e = $post;
+//                $e['name'] = $e['name'] . ' E级';
+//                $e['py'] = stringUtil::py($e['name']);
+//                \bizGhs\product\classes\ProductClass::addProduct($e, $shop);
             }
         }
     }