| | |
| | | */ |
| | | public CovertPayBackResult covertPayCallBack(HttpServletRequest httpRequest, Function<ChargeBillRequest,Boolean> consumer) { |
| | | CovertPayBackResult result = new CovertPayBackResult(); |
| | | String requestContent = ""; |
| | | try { |
| | | // 接收报文 |
| | | String requestContent = SignatureAndVerification.getRequestBody(httpRequest).trim(); |
| | | requestContent = SignatureAndVerification.getRequestBody(httpRequest).trim(); |
| | | String sign = requestContent.substring(0, |
| | | requestContent.indexOf("||"));; |
| | | String requestBody = requestContent.substring(sign |
| | |
| | | } |
| | | result.setResult(chargeBillRequest); |
| | | result.setBack(createResponse(chargeBillRequest,dealBack)); |
| | | }catch (ServiceException e){ |
| | | throw e; |
| | | }catch (Exception e){ |
| | | log.error("解析报文发生异常",e); |
| | | log.error("解析异常:{}",requestContent,e); |
| | | throw new ServiceException("支付回调解析异常"); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | |
| | | public void covertBillTo(){ |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |