吴学文
2020-01-11 8b47dded9b195b5ddce8c9c0c15186bdf48e47e3
打印微信回调信息
2个文件已修改
6 ■■■■ 已修改文件
AppFrontService/src/main/java/com/java110/app/controller/PaymentController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppFrontService/src/main/java/com/java110/app/smo/payment/impl/ToNotifySMOImpl.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
AppFrontService/src/main/java/com/java110/app/controller/PaymentController.java
@@ -62,6 +62,8 @@
    @RequestMapping(path = "/notify", method = RequestMethod.POST)
    public ResponseEntity<String> notify(@RequestBody String postInfo, HttpServletRequest request) {
        logger.debug("微信支付回调报文" + postInfo);
        return toNotifySMOImpl.toNotify(request);
AppFrontService/src/main/java/com/java110/app/smo/payment/impl/ToNotifySMOImpl.java
@@ -54,7 +54,9 @@
            }
            outputStream.close();
            inputStream.close();
            Map<String, Object> map = PayUtil.getMapFromXML(new String(outputStream.toByteArray(), "utf-8"));
            String wxReqXml = new String(outputStream.toByteArray(), "utf-8");
            logger.debug("微信回调报文" + wxReqXml);
            Map<String, Object> map = PayUtil.getMapFromXML(wxReqXml);
            logger.info("【小程序支付回调】 回调数据: \n" + map);
            String returnCode = (String) map.get("return_code");
            if ("SUCCESS".equalsIgnoreCase(returnCode)) {