shish 2 years ago
parent
commit
1dec56a920
1 changed files with 1 additions and 1 deletions
  1. 1 1
      console/controllers/OrderController.php

+ 1 - 1
console/controllers/OrderController.php

@@ -23,10 +23,10 @@ class OrderController extends Controller
         $startDate = date("Y-m-d H:i:s", $startTime);
         $endDate = date("Y-m-d H:i:s", $endTime);
         //查询已经过期10天的订单
+        echo $startDate.' '.$endDate;die;
         $query->where(['status' => 2])->andWhere(['>', 'payTime', $startDate])->andWhere(['<=', 'payTime', $endDate]);
         $query->orderBy('deadline ASC');
         foreach ($query->batch() as $batchOrder) {
-            print_r($batchOrder);die;
             foreach ($batchOrder as $order) {
                 $connection = Yii::$app->db;
                 $transaction = $connection->beginTransaction();