shish 10 сар өмнө
parent
commit
e603e2054b

+ 1 - 5
console/controllers/TestController.php

@@ -52,14 +52,10 @@ class TestController extends Controller
 
     public function actionSend()
     {
-        echo "111\n";
-        ini_set('memory_limit', '2045M');
         set_time_limit(0);
-        echo "111222\n";
         $query = new \yii\db\Query();
-        echo "111333\n";
+        $query->select(['id', 'sendStatus']);
         $query->from(Purchase::tableName());
-        echo "111444\n";
         foreach ($query->batch(30) as $batch) {
             print_r($batch);die;
             foreach ($batch as $order) {