Browse Source

Merge remote-tracking branch 'origin/master'

master
李可松 4 years ago
parent
commit
185b04aafe
  1. 3
      app/Jobs/OrderTimeout.php

3
app/Jobs/OrderTimeout.php

@ -55,8 +55,7 @@ class OrderTimeout implements ShouldQueue
->whereNotNull('timeout') ->whereNotNull('timeout')
->where('order_no', $this->orderNumber) ->where('order_no', $this->orderNumber)
->first(); ->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()) {
DB::beginTransaction(); DB::beginTransaction();
try { try {
//取消订单 //取消订单

Loading…
Cancel
Save