Jxing 6 лет назад
Родитель
Сommit
5c9c8b04b7
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/main/java/com/sagacloud/route/Route.java

+ 2 - 0
src/main/java/com/sagacloud/route/Route.java

@@ -50,10 +50,12 @@ public class Route extends ExceptionHandlerBaseRoute {
                 .produces(MediaType.APPLICATION_JSON)
                 .route()
                 .process(exchange -> {
+
                     String jsonStr = exchange.getIn().getBody(String.class);
                     JSONObject json = JSONObject.parseObject(jsonStr);
                     exchange.setProperty("venderId", json.getString("venderId"));
                     exchange.getIn().setBody(jsonStr);
+
                 })
                 .to("direct:getPropertiesByPj")
                 .process(new GetVenderBySpecProcessor())