shish před 2 roky
rodič
revize
139f71226e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      console/controllers/OrderController.php

+ 1 - 1
console/controllers/OrderController.php

@@ -59,8 +59,8 @@ class OrderController extends Controller
         //查询已经过期10天的订单
         $query->where(['status' => 3])->andWhere(['>', 'fhTime', $startDate])->andWhere(['<=', 'fhTime', $endDate]);
         $query->orderBy('deadline ASC');
+        echo $startDate . ' ' . $endDate;
         foreach ($query->batch() as $batchCg) {
-            echo $startDate . ' ' . $endDate;
             print_r($batchCg);
             foreach ($batchCg as $cg) {
                 $connection = Yii::$app->db;