Browse Source

队列

master
lemon 4 years ago
parent
commit
e0249622ed
  1. 3
      app/Jobs/OrderTimeout.php

3
app/Jobs/OrderTimeout.php

@ -56,7 +56,8 @@ class OrderTimeout implements ShouldQueue
->where('order_no', $this->orderNumber)
->first();
Log::info($v->timeout);
if (!empty($v) && !is_null($v->timeout) && strtotime($v->timeout) < time()) {
if (!empty($v) && !is_null($v->timeout) && strtotime($v->timeout) <= time()) {
Log::info('do');
DB::beginTransaction();
try {
//取消订单

Loading…
Cancel
Save