ceshust opened a new issue #2609:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2609


   `@PostMapping(value = CREATE_PAY_ORDER, consumes = 
MediaType.APPLICATION_FORM_URLENCODED_VALUE,
           produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
       public org.apache.servicecomb.swagger.invocation.Response createPayOrder(
           @FormParam("paymentRequest") String paymentRequest, 
@FormParam("payMode") String payMode) {
           System.out.println("paymentRequest = " + paymentRequest);
           System.out.println("payMode = " + payMode);
   
           Headers headers = new Headers();
           headers.addHeader("Location", "xxxxxxxxxxxx");
           final org.apache.servicecomb.swagger.invocation.Response response
               = new org.apache.servicecomb.swagger.invocation.Response();
           // 指定返回302状态码
           
response.setStatus(javax.ws.rs.core.Response.Status.TEMPORARY_REDIRECT);
           response.setHeaders(headers);
           response.setResult(new 
InvocationException(javax.ws.rs.core.Response.Status.TEMPORARY_REDIRECT, null));
           return response;
       }`
   
   
   我用这种方式可以重定向到别的接口,但是 实际的场景是需要修改原始表单的数据,然后重定向到另外一个post 
请求,我能通过什么方式修改原始请求中表单数据的值呢?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to