| | |
| | | @Resource |
| | | private XpCruisePlanClient xpCruisePlanClient; |
| | | |
| | | |
| | | private static final com.google.protobuf.util.JsonFormat.Printer jsonPrinter = com.google.protobuf.util.JsonFormat.printer() |
| | | .printingEnumsAsInts() |
| | | .preservingProtoFieldNames(); |
| | | |
| | | |
| | | /** |
| | |
| | | StatusCode code = response.getCode(); |
| | | long requestSeq = response.getRequestSeq(); |
| | | if(code == StatusCode.OK){ |
| | | log.info("收到XPU消息的响应,code: {}, message: {}", code.getNumber(), message); |
| | | Object sequence = redisTemplate.opsForValue().get(requestSeq); |
| | | if(sequence!=null){ |
| | | log.info("收到XPU消息的响应,sequence: {}", sequence); |
| | | JSONObject jsonObject = JSON.parseObject(sequence.toString()); |
| | | String event = jsonObject.getString("event"); |
| | | //推送导航的响应消息 |
| | | if(SystemEventType.PUSH_NAVIGATION.equals(event)){ |
| | | log.info("推送导航的响应消息,{}", jsonObject.toJSONString()); |
| | | String orderId = jsonObject.getString("orderId"); |
| | | String vin = jsonObject.getString("vin"); |
| | | String orderType = jsonObject.getString("orderType"); |