|
@@ -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]);
|
|
|
- }
|
|
|
- }
|
|
|
}
|