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; }