request->input('order_id'); $type = (int)$this->request->input('type'); $orderInfo = $this->orderModel->getInfoById($orderId); if ($orderInfo->status != OrderCode::WAIT_PAY) throw new ErrException('该订单状态已变更,请勿重复操作'); //立即取消 $this->joinCancelDelayQueue($orderId, $type,1); return $this->return->success(); } }