java110
2020-09-25 837efd85408f632270c1feab581e4cb4de515b13
service-front/src/main/java/com/java110/front/controller/PaymentController.java
@@ -43,6 +43,9 @@
    @Autowired
    private IRentingToNotifySMO rentingToNotifySMOImpl;
    @Autowired
    private IOweFeeToNotifySMO oweFeeToNotifySMOImpl;
    /**
@@ -150,18 +153,11 @@
     * @param request
     * @throws Exception
     */
    @RequestMapping(path = "/oweFeeToPay", method = RequestMethod.POST)
    public ResponseEntity<String> oweFeeToPay(@RequestBody String postInfo, HttpServletRequest request) {
        IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA);
        String appId = request.getHeader("APP_ID");
        if (StringUtil.isEmpty(appId)) {
            appId = request.getHeader("APP-ID");
        }
    @RequestMapping(path = "/oweFeeNotify", method = RequestMethod.POST)
    public ResponseEntity<String> oweFeeNotify(@RequestBody String postInfo, HttpServletRequest request) {
        logger.debug("微信支付回调报文" + postInfo);
        IPageData newPd = PageData.newInstance().builder(pd.getUserId(), pd.getUserName(), pd.getToken(), postInfo,
                "", "", "", pd.getSessionId(),
                appId);
        return rentingToPaySMOImpl.toPay(newPd);
        return oweFeeToNotifySMOImpl.toNotify(postInfo,request);
    }
    /**
     * <p>支付回调Api</p>