orderSN = $orderSN; } /** * Execute the job. * * @return void */ public function handle() { // 如果x分钟后还没支付就算过期 $order = app('Service\OrderService')->detailOrderSN($this->orderSN); if ($order && $order->status == Order::STATUS_WAIT_PAY) { app('Service\OrderService')->expiredOrderSN($this->orderSN); // 回退优惠券 CouponBack::dispatch($order); } } }