orderId,'产品订单状态同步平台队列start'); $this->setRequest(); $ProductOrder = ProductOrder::findOne([ 'id' => $this->orderId, 'is_online' => 1, ]); if (!$ProductOrder || !$ProductOrder->sync_order_no) { throw new \Exception('订单不存在'); } $result = (new PlatformService())->updateOrder([ 'store_id' => 0, 'order_no' => $ProductOrder->sync_order_no, 'status' => $this->status ]); ProductOrderLog::saveLog($this->orderId,'产品订单状态同步平台队列end'); } catch (\Exception $exception) { ProductOrderLog::saveLog($this->orderId,'产品订单状态同步平台队列异常:'.$exception->getMessage()); return; } return $result; } }