orderId,'产品订单退款分账结算更新队列start'); $this->setRequest(); $ProductOrder = ProductOrder::findOne([ 'id' => $this->orderId, 'status' => 4, ]); if (!$ProductOrder || $ProductOrder->type != 2) { throw new \Exception('订单不存在'); } $ledgerForm = new LedgerForm(); $ledgerForm->order_id = $this->orderId; $ledgerForm->status = 2; $ledgerForm->update(); ProductOrderLog::saveLog($this->orderId,'产品订单退款分账结算更新队列end'); } catch (\Exception $exception) { ProductOrderLog::saveLog($this->orderId,'产品订单退款分账结算更新队列异常:'.$exception->getMessage()); return; } } }