| | |
| | | //支付接口通知 |
| | | @PostMapping("result") |
| | | public String result(HttpServletRequest request, String payKey, String payerTypeCode, String payerNum, String payCode, Double amt, String status, String errorInfo, String sign, String signType) throws Exception{ |
| | | System.out.println(payCode+"-------"+status); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH_mm_ss"); |
| | | String s = "payCode===="+payCode+",\n"; |
| | | try { |
| | | s += sdf.format(new Date())+"开始走回调接口------>\n"; |
| | | writeTxt(s); |
| | | updateOrderRecord(payCode,status); |
| | | }catch (Exception e){ |
| | | s += "更新订单记录出异常------>"; |
| | | writeTxt(s); |
| | | e.printStackTrace(); |
| | | } |
| | | return "success"; |
| | | } |