shish 2 år sedan
förälder
incheckning
534ff3dbcc
1 ändrade filer med 0 tillägg och 13 borttagningar
  1. 0 13
      console/controllers/TestController.php

+ 0 - 13
console/controllers/TestController.php

@@ -23,19 +23,6 @@ use yii\console\Controller;
 class TestController extends Controller
 {
 
-    public function actionUpdateBelong()
-    {
-        ini_set('memory_limit', '2045M');
-        set_time_limit(0);
-        $list = ProductClass::getAllByCondition(['belongCost' => 1], null, '*', null, true);
-        if (!empty($list)) {
-            foreach ($list as $item) {
-                $productId = $item->id ?? 0;
-                OrderItemClass::updateByCondition(['productId' => $productId], ['belongCost' => 1]);
-            }
-        }
-    }
-
     public function actionDeadline()
     {
         ini_set('memory_limit', '2045M');