shish 3 years ago
parent
commit
f0271a521d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      console/controllers/HdOrderController.php

+ 2 - 3
console/controllers/HdOrderController.php

@@ -23,11 +23,11 @@ class HdOrderController extends Controller
         $query = new \yii\db\Query();
         $query->from(Order::tableName());
         $now = time();
-        $current = bcsub($now, 100);
+        $current = bcsub($now, 30);
+        //$current = bcsub($now, 100);
         $time = date("Y-m-d H:i:s", $current);
         $query->where(['status' => 1])->andWhere(['<=', 'addTime', $time]);
         $query->orderBy('addTime ASC');
-        exit();
         foreach ($query->batch() as $batchOrder) {
             foreach ($batchOrder as $order) {
                 $connection = Yii::$app->db;
@@ -73,7 +73,6 @@ class HdOrderController extends Controller
                             WxMessageClass::gatheringIncomeInform($shop, $newOrder);
 
                             noticeUtil::push("订单号:{$orderSn}微信已付款", '15280215347');
-
                         }
                     }