| | |
| | | private IOweFeeToNotifySMO oweFeeToNotifySMOImpl; |
| | | |
| | | @Autowired |
| | | private ITempCarFeeToNotifySMO tempCarFeeToNotifySMOImpl; |
| | | |
| | | @Autowired |
| | | private IToQrPayOweFeeSMO toQrPayOweFeeSMOImpl; |
| | | @Autowired |
| | | private IToPayInGoOutSMO toPayInGoOutSMOImpl; |
| | | @Autowired |
| | | private IToPayBackCitySMO toPayBackCitySMOImpl; |
| | | |
| | | @Autowired |
| | | private IToPayTempCarFeeSMO toPayTempCarFeeSMOImpl; |
| | | |
| | | /** |
| | | * <p>统一下单入口</p> |
| | |
| | | |
| | | IPageData newPd = PageData.newInstance().builder(pd.getUserId(), pd.getUserName(), pd.getToken(), postInfo, |
| | | "", "", "", pd.getSessionId(), |
| | | appId,pd.getHeaders()); |
| | | appId, pd.getHeaders()); |
| | | return toPayOweFeeSMOImpl.toPay(newPd); |
| | | } |
| | | |
| | | /** |
| | | * <p>统一下单入口</p> |
| | | * |
| | | * @param request |
| | | * @throws Exception |
| | | */ |
| | | @RequestMapping(path = "/toPayTempCarFee", method = RequestMethod.POST) |
| | | public ResponseEntity<String> toPayTempCarFee(@RequestBody String postInfo, HttpServletRequest request) { |
| | | IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA); |
| | | /*IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA);*/ |
| | | String appId = request.getHeader("APP_ID"); |
| | | if (StringUtil.isEmpty(appId)) { |
| | | appId = request.getHeader("APP-ID"); |
| | | } |
| | | |
| | | IPageData newPd = PageData.newInstance().builder(pd.getUserId(), pd.getUserName(), pd.getToken(), postInfo, |
| | | "", "", "", pd.getSessionId(), |
| | | appId, pd.getHeaders()); |
| | | return toPayTempCarFeeSMOImpl.toPay(newPd); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | String preStr = buildSignString(params); |
| | | paramIn.put("preSign",preStr); |
| | | paramIn.put("sign",sign); |
| | | paramIn.put("preSign", preStr); |
| | | paramIn.put("sign", sign); |
| | | //判断签名是否相等 |
| | | |
| | | // 收到通知后记得返回SUCCESS |
| | |
| | | |
| | | |
| | | String preStr = buildSignString(params); |
| | | paramIn.put("preSign",preStr); |
| | | paramIn.put("sign",sign); |
| | | paramIn.put("preSign", preStr); |
| | | paramIn.put("sign", sign); |
| | | |
| | | return oweFeeToNotifySMOImpl.toNotify(paramIn.toJSONString(), request); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * <p>出租统一下单入口</p> |
| | | * |
| | | * @param request |
| | | * @throws Exception |
| | | */ |
| | | @RequestMapping(path = "/tempCarFeeNotifyUrl", method = RequestMethod.POST) |
| | | public ResponseEntity<String> tempCarFeeNotifyUrl(@RequestBody String postInfo, HttpServletRequest request) { |
| | | logger.debug("微信支付回调报文" + postInfo); |
| | | |
| | | return tempCarFeeToNotifySMOImpl.toNotify(postInfo, request); |
| | | } |
| | | |
| | | /** |
| | | * <p>支付回调Api</p> |
| | | * |
| | | * @param request |