shish 2 سال پیش
والد
کامیت
f30fcfb6fa
1فایلهای تغییر یافته به همراه13 افزوده شده و 13 حذف شده
  1. 13 13
      console/controllers/ProductController.php

+ 13 - 13
console/controllers/ProductController.php

@@ -56,20 +56,20 @@ class ProductController extends Controller
                 $b['py'] = stringUtil::py($b['name']);
                 \bizGhs\product\classes\ProductClass::addProduct($b, $shop);
 
-//                $ab = $post;
-//                $ab['name'] = $ab['name'] . ' AB级';
-//                $ab['py'] = stringUtil::py($ab['name']);
-//                \bizGhs\product\classes\ProductClass::addProduct($ab, $shop);
+                $ab = $post;
+                $ab['name'] = $ab['name'] . ' AB级';
+                $ab['py'] = stringUtil::py($ab['name']);
+                \bizGhs\product\classes\ProductClass::addProduct($ab, $shop);
 
-                $c = $post;
-                $c['name'] = $c['name'] . ' C级';
-                $c['py'] = stringUtil::py($c['name']);
-                \bizGhs\product\classes\ProductClass::addProduct($c, $shop);
-
-                $d = $post;
-                $d['name'] = $d['name'] . ' D级';
-                $d['py'] = stringUtil::py($d['name']);
-                \bizGhs\product\classes\ProductClass::addProduct($d, $shop);
+//                $c = $post;
+//                $c['name'] = $c['name'] . ' C级';
+//                $c['py'] = stringUtil::py($c['name']);
+//                \bizGhs\product\classes\ProductClass::addProduct($c, $shop);
+//
+//                $d = $post;
+//                $d['name'] = $d['name'] . ' D级';
+//                $d['py'] = stringUtil::py($d['name']);
+//                \bizGhs\product\classes\ProductClass::addProduct($d, $shop);
 
 //                $e = $post;
 //                $e['name'] = $e['name'] . ' E级';