From 633782d964b4b8a0f60d9749d66088f09d58d416 Mon Sep 17 00:00:00 2001 From: sikadi <13315935+sikadi_love@user.noreply.gitee.com> Date: Sat, 2 Dec 2023 12:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=9B=B4=E6=94=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shiyi/launch/service/impl/VehiclelaunchServiceimpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fate-launch-server/src/main/java/com/shiyi/launch/service/impl/VehiclelaunchServiceimpl.java b/fate-launch-server/src/main/java/com/shiyi/launch/service/impl/VehiclelaunchServiceimpl.java index cdb06e7..1351bdf 100644 --- a/fate-launch-server/src/main/java/com/shiyi/launch/service/impl/VehiclelaunchServiceimpl.java +++ b/fate-launch-server/src/main/java/com/shiyi/launch/service/impl/VehiclelaunchServiceimpl.java @@ -1,5 +1,6 @@ package com.shiyi.launch.service.impl; +import com.alibaba.fastjson.JSON; import com.fate.common.core.utils.StringUtils; import com.shiyi.launch.domain.VehicleConnectionReq; import com.shiyi.launch.mapper.VehicleaunchMapper; @@ -58,7 +59,7 @@ public class VehiclelaunchServiceimpl implements VehiclelaunchService { String fate = "fate" + vehicleConnectionReq.getVehicleVin().substring(3,7) + vehicleConnectionReq.getNonce(); - rabbitTemplate.convertAndSend(FATE,STREAM_QUEUE,fate); + rabbitTemplate.convertAndSend(STREAM_QUEUE, JSON.toJSONString(fate)); log.info("发送消息成功"); return fate; }