Browse Source

队列

master
lemon 4 years ago
parent
commit
41a989cc44
  1. 2
      app/Jobs/OrderTimeout.php

2
app/Jobs/OrderTimeout.php

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

Loading…
Cancel
Save