|
|
|
@@ -194,38 +194,38 @@ public class TtPayController extends BaseController { |
|
|
|
} |
|
|
|
} |
|
|
|
}else if("refund".equals(type)){//退款回调 |
|
|
|
String cp_refundno,status; |
|
|
|
Integer refund_amount; |
|
|
|
if(is2_0){ |
|
|
|
cp_refundno = (String) pMap.get("out_refund_no"); |
|
|
|
status = (String) pMap.get("status"); |
|
|
|
refund_amount = (Integer) pMap.get("refund_total_amount"); |
|
|
|
}else{ |
|
|
|
cp_refundno = (String) pMap.get("cp_refundno"); |
|
|
|
status = (String) pMap.get("status"); |
|
|
|
refund_amount = (Integer) pMap.get("refund_amount"); |
|
|
|
} |
|
|
|
|
|
|
|
Map<String,String> map = new HashMap<>(); |
|
|
|
map.put("appid",appid); |
|
|
|
map.put("cp_refundno",cp_refundno); |
|
|
|
map.put("status",status); |
|
|
|
map.put("refund_amount",refund_amount.toString()); |
|
|
|
// wxRefundOrderService.notify(map, EnumPayWay.PAY_WAY_TT); |
|
|
|
|
|
|
|
String jsonMsg = JSON.toJSONString(map); |
|
|
|
|
|
|
|
FmInsideNotifyRefundSuccessMsg refundSuccessMsg = new FmInsideNotifyRefundSuccessMsg(); |
|
|
|
refundSuccessMsg.setMsgType(EnumMsgRecordType.INSIDE_NOTIFY_REFUND_SUCCESS.getCode()); |
|
|
|
refundSuccessMsg.setDelayTimeLevel(3); |
|
|
|
refundSuccessMsg.setPayWay(EnumPayWay.PAY_WAY_TT.getCode()); |
|
|
|
refundSuccessMsg.setJsonMsg(jsonMsg); |
|
|
|
|
|
|
|
// response = wxRefundOrderService.notify(paramMap, EnumPayWay.PAY_WAY_WEAPP); |
|
|
|
mqBaseProducer.sendMessage(refundSuccessMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
|
|
|
|
resultMap.put("err_no",0); |
|
|
|
resultMap.put("err_tips","success"); |
|
|
|
// String cp_refundno,status; |
|
|
|
// Integer refund_amount; |
|
|
|
// if(is2_0){ |
|
|
|
// cp_refundno = (String) pMap.get("out_refund_no"); |
|
|
|
// status = (String) pMap.get("status"); |
|
|
|
// refund_amount = (Integer) pMap.get("refund_total_amount"); |
|
|
|
// }else{ |
|
|
|
// cp_refundno = (String) pMap.get("cp_refundno"); |
|
|
|
// status = (String) pMap.get("status"); |
|
|
|
// refund_amount = (Integer) pMap.get("refund_amount"); |
|
|
|
// } |
|
|
|
// |
|
|
|
// Map<String,String> map = new HashMap<>(); |
|
|
|
// map.put("appid",appid); |
|
|
|
// map.put("cp_refundno",cp_refundno); |
|
|
|
// map.put("status",status); |
|
|
|
// map.put("refund_amount",refund_amount.toString()); |
|
|
|
//// wxRefundOrderService.notify(map, EnumPayWay.PAY_WAY_TT); |
|
|
|
// |
|
|
|
// String jsonMsg = JSON.toJSONString(map); |
|
|
|
// |
|
|
|
// FmInsideNotifyRefundSuccessMsg refundSuccessMsg = new FmInsideNotifyRefundSuccessMsg(); |
|
|
|
// refundSuccessMsg.setMsgType(EnumMsgRecordType.INSIDE_NOTIFY_REFUND_SUCCESS.getCode()); |
|
|
|
// refundSuccessMsg.setDelayTimeLevel(3); |
|
|
|
// refundSuccessMsg.setPayWay(EnumPayWay.PAY_WAY_TT.getCode()); |
|
|
|
// refundSuccessMsg.setJsonMsg(jsonMsg); |
|
|
|
// |
|
|
|
// // response = wxRefundOrderService.notify(paramMap, EnumPayWay.PAY_WAY_WEAPP); |
|
|
|
// mqBaseProducer.sendMessage(refundSuccessMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
// |
|
|
|
// resultMap.put("err_no",0); |
|
|
|
// resultMap.put("err_tips","success"); |
|
|
|
}else if("settle".equals(type)){ |
|
|
|
|
|
|
|
} |
|
|
|
|