Commit bfe51b4a authored by 张永's avatar 张永

1

parent 5013f6f5
......@@ -14,6 +14,7 @@ import org.json.XML;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
......@@ -72,32 +73,18 @@ public class PayNotifyController {
@ApiIgnore
@ApiOperation("微企付回调通知接口")
@RequestMapping(value = "/msePayCallback", method = RequestMethod.POST)
public Object mepayCallback(HttpServletRequest req, HttpServletResponse resp) {
try {
ServletInputStream in = req.getInputStream();
String xmlMsg = StringUtil.inputStream2String(in);
logger.info("接收到微企付回调通知接口 {}",xmlMsg);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
public Object mepayCallback(@RequestBody String req, HttpServletResponse resp) {
logger.info("接收到微企付回调通知接口: "+req);
return "success";
}
@ApiIgnore
@ApiOperation("网商银行回调通知接口")
@RequestMapping(value = "/mybankCallback", method = RequestMethod.POST)
public Object mybankCallback(HttpServletRequest req, HttpServletResponse resp) {
try {
ServletInputStream in = req.getInputStream();
String xmlMsg = StringUtil.inputStream2String(in);
logger.info("网商银行回调通知接口 {}",xmlMsg);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
public Object mybankCallback(@RequestBody String req, HttpServletResponse resp) {
logger.info("网商银行回调通知接口 {}",req);
return "success";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment