shish %!s(int64=2) %!d(string=hai) anos
pai
achega
9bcdcc3d3e
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      console/controllers/TestController.php

+ 2 - 3
console/controllers/TestController.php

@@ -61,12 +61,11 @@ class TestController extends Controller
         }
     }
 
-    public
-    function actionBelong()
+    public function actionBelong()
     {
         ini_set('memory_limit', '2045M');
         set_time_limit(0);
-        $shopList = ShopClass::getAllByCondition(['id' => ['in', [23580, 11094, 520, 1489, 8596, 4608, 7855, 21486, 1585, 10649, 10768, 8249, 447, 763, 1421]]], null, '*', null, true);
+        $shopList = ShopClass::getAllByCondition(['id' => ['in', [23580]]], null, '*', null, true);
         if (!empty($shopList)) {
             foreach ($shopList as $shop) {
                 $mainId = $shop->mainId ?? 0;