quguofeng 2 년 전
부모
커밋
0a02dc7bd0
1개의 변경된 파일0개의 추가작업 그리고 19개의 파일을 삭제
  1. 0 19
      app/common/dao/store/order/StoreOrderDao.php

+ 0 - 19
app/common/dao/store/order/StoreOrderDao.php

@@ -745,23 +745,4 @@ class StoreOrderDao extends BaseDao
         })->where('StoreOrder.uid',$uid)->count()
        ;
     }
-    /**
-     * TODO 超时订单更改订单状态
-     * @param $id
-     * @param $uid
-     * @return array|Model|null
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
-     * @author xaboy
-     * @day 2020/6/11
-     */
-    public function expireOrder()
-    {
-        $info = StoreOrder::getDB()->where('status',4)->where('expire_time','<', date('Y-m-d H:i:s'))->find();
-        if(isset($info) && $info){
-            StoreOrder::getDB()->where('order_id',$info->order_id)->update(array('status'=>5));
-            Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_FALSE', 'id' => $info->order_id]);
-        }
-    }
 }