wuxw
2020-02-23 219655836dce9581cc668c77950204ab283d8d45
AppFrontService/src/main/java/com/java110/app/controller/PaymentController.java
@@ -3,6 +3,7 @@
import com.java110.app.smo.complaint.ISaveComplaintSMO;
import com.java110.app.smo.payment.IToNotifySMO;
import com.java110.app.smo.payment.IToPaySMO;
import com.java110.app.smo.payment.IToPayTempCarInoutSMO;
import com.java110.core.base.controller.BaseController;
import com.java110.core.context.IPageData;
import com.java110.core.context.PageData;
@@ -34,6 +35,9 @@
    private IToPaySMO toPaySMOImpl;
    @Autowired
    private IToPayTempCarInoutSMO toPayTempCarInoutSMOImpl;
    @Autowired
    private IToNotifySMO toNotifySMOImpl;
    /**
@@ -52,6 +56,22 @@
        return toPaySMOImpl.toPay(newPd);
    }
    /**
     * <p>统一下单入口</p>
     *
     * @param request
     * @throws Exception
     */
    @RequestMapping(path = "/toPayTempCarInout", method = RequestMethod.POST)
    public ResponseEntity<String> toPayTempCarInout(@RequestBody String postInfo, HttpServletRequest request) {
        IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA);
        /*IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA);*/
        IPageData newPd = PageData.newInstance().builder(pd.getUserId(), pd.getUserName(), pd.getToken(), postInfo,
                "", "", "", pd.getSessionId(),
                request.getHeader("APP_ID"));
        return toPayTempCarInoutSMOImpl.toPay(newPd);
    }
    /**
     * <p>支付回调Api</p>
@@ -62,7 +82,9 @@
    @RequestMapping(path = "/notify", method = RequestMethod.POST)
    public ResponseEntity<String> notify(@RequestBody String postInfo, HttpServletRequest request) {
        return toNotifySMOImpl.toNotify(request);
        logger.debug("微信支付回调报文" + postInfo);
        return toNotifySMOImpl.toNotify(postInfo,request);
    }