shish 4 лет назад
Родитель
Сommit
6b05a7c321
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      console/controllers/InitController.php

+ 3 - 2
console/controllers/InitController.php

@@ -20,10 +20,11 @@ class InitController extends Controller
         }
         ini_set('memory_limit', '2045M');
         set_time_limit(0);
-        $list = OrderClass::getAllByCondition(['shopId' => $shopId, 'fromType' => 3, 'reachDate>' => '2022-08-01'], null, '*', null, true);
+        $list = OrderClass::getAllByCondition(['shopId' => $shopId, 'fromType' => 3, 'reachDate>' => '2022-08-02'], null, '*', null, true);
         if (!empty($list)) {
             foreach ($list as $order) {
-                echo $order['reachDate'] . "\n";
+                $order->status = 2;
+                $order->save();
             }
         }
     }