|
@@ -20,10 +20,10 @@ public class GetInsuranceNoListProcessor implements Processor {
|
|
public void process(Exchange exchange) throws Exception {
|
|
public void process(Exchange exchange) throws Exception {
|
|
String jsonStr = exchange.getIn().getBody(String.class);
|
|
String jsonStr = exchange.getIn().getBody(String.class);
|
|
InsurancePost post = JSONObject.parseObject(jsonStr, InsurancePost.class);
|
|
InsurancePost post = JSONObject.parseObject(jsonStr, InsurancePost.class);
|
|
-
|
|
|
|
|
|
+ System.out.println(ProPasCache.getPjSecret(post.getProjectId()));
|
|
if(post.getVenderId() == null || post.getProjectId() == null || ProPasCache.getPjSecret(post.getProjectId()) == null)
|
|
if(post.getVenderId() == null || post.getProjectId() == null || ProPasCache.getPjSecret(post.getProjectId()) == null)
|
|
throw new InvalidPostException("参数错误!");
|
|
throw new InvalidPostException("参数错误!");
|
|
- //exchange.getIn().setBody();
|
|
|
|
|
|
+ exchange.getIn().setBody(jsonStr);
|
|
exchange.setProperty("postParam", post);
|
|
exchange.setProperty("postParam", post);
|
|
exchange.getIn().setHeader(Exchange.HTTP_URI, String.join("", InitEnvRoute.venders, "/insurance/contract/query?method=POST"));
|
|
exchange.getIn().setHeader(Exchange.HTTP_URI, String.join("", InitEnvRoute.venders, "/insurance/contract/query?method=POST"));
|
|
exchange.getIn().setHeader(Exchange.HTTP_QUERY,String.join("", Const.HEADER_PROJECT , "=", post.getProjectId(),
|
|
exchange.getIn().setHeader(Exchange.HTTP_QUERY,String.join("", Const.HEADER_PROJECT , "=", post.getProjectId(),
|