| @@ -71,7 +71,7 @@ public class TtPayController extends BaseController { | |||||
| @PostMapping(value = "/orderPay") | @PostMapping(value = "/orderPay") | ||||
| @ResponseBody | @ResponseBody | ||||
| public Map<String,Object> createOrder( @RequestBody Map<String, Object> parameterMap){ | public Map<String,Object> createOrder( @RequestBody Map<String, Object> parameterMap){ | ||||
| logger.debug("[" + getIpAddr() + "] TtOrderCallbackController::createOrder"); | |||||
| logger.debug("[" + getIpAddr() + "] TtOrderCallbackController::orderPay"); | |||||
| Map<String,Object> resultMap = new HashMap<>(); | Map<String,Object> resultMap = new HashMap<>(); | ||||
| // String body = ((BodyReaderHttpServletRequestWrapper) request).getBody(); | // String body = ((BodyReaderHttpServletRequestWrapper) request).getBody(); | ||||
| @@ -123,13 +123,13 @@ public class TtPayController extends BaseController { | |||||
| }else if("refund".equals(type)){//退款回调 | }else if("refund".equals(type)){//退款回调 | ||||
| String cp_refundno = (String) pMap.get("cp_refundno"); | String cp_refundno = (String) pMap.get("cp_refundno"); | ||||
| String status = (String) pMap.get("status"); | String status = (String) pMap.get("status"); | ||||
| String refund_amount = (String) pMap.get("refund_amount"); | |||||
| Integer refund_amount = (Integer) pMap.get("refund_amount"); | |||||
| Map<String,String> map = new HashMap<>(); | Map<String,String> map = new HashMap<>(); | ||||
| map.put("appid",appid); | map.put("appid",appid); | ||||
| map.put("cp_refundno",cp_refundno); | map.put("cp_refundno",cp_refundno); | ||||
| map.put("status",status); | map.put("status",status); | ||||
| map.put("refund_amount",refund_amount); | |||||
| map.put("refund_amount",refund_amount.toString()); | |||||
| wxRefundOrderService.notify(map, EnumPayWay.PAY_WAY_TT); | wxRefundOrderService.notify(map, EnumPayWay.PAY_WAY_TT); | ||||
| resultMap.put("err_no",0); | resultMap.put("err_no",0); | ||||
| resultMap.put("err_tips","success"); | resultMap.put("err_tips","success"); | ||||
| @@ -137,7 +137,7 @@ public class TtPayController extends BaseController { | |||||
| return resultMap; | return resultMap; | ||||
| } catch (Exception e){ | } catch (Exception e){ | ||||
| e.printStackTrace(); | |||||
| logger.error(e.getMessage()); | |||||
| resultMap.put("err_tips","error"); | resultMap.put("err_tips","error"); | ||||
| return resultMap; | return resultMap; | ||||
| } | } | ||||