|
|
|
@@ -70,29 +70,12 @@ public class WxPayController extends BaseController { |
|
|
|
|
|
|
|
Map<String, String> paramMap = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
paramMap = WxPayment.xmlToMap(resultxml); |
|
|
|
logger.info("微信支付回调, notify, param: " + paramMap.toString() ); |
|
|
|
|
|
|
|
|
|
|
|
String jsonMsg = JSON.toJSONString(paramMap); |
|
|
|
FmInsideNotifyPaySuccessMsg paySuccessMsg = new FmInsideNotifyPaySuccessMsg(); |
|
|
|
paySuccessMsg.setMsgType(EnumMsgRecordType.INSIDE_NOTIFY_PAY_SUCCESS.getCode()); |
|
|
|
paySuccessMsg.setDelayTimeLevel(3); |
|
|
|
paySuccessMsg.setPayWay(EnumPayWay.PAY_WAY_WEAPP.getCode()); |
|
|
|
paySuccessMsg.setJsonMsg(jsonMsg); |
|
|
|
// String response = wxPayOrderService.notify(paramMap, EnumPayWay.PAY_WAY_WEAPP); |
|
|
|
mqBaseProducer.sendMessage(paySuccessMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
|
|
|
|
|
|
|
|
String response = wxPayOrderService.notify(paramMap, EnumPayWay.PAY_WAY_WEAPP); |
|
|
|
logger.info("微信支付回调, notify success, req : " + resultxml); |
|
|
|
|
|
|
|
SortedMap resultMap = new TreeMap(); |
|
|
|
resultMap.put("return_code", "SUCCESS"); |
|
|
|
resultMap.put("return_msg", "OK"); |
|
|
|
return XmlUtil.getRequestXml(resultMap); |
|
|
|
return response; |
|
|
|
} catch (BizMessageException e) { |
|
|
|
if (paramMap == null) { |
|
|
|
logger.error("微信支付回调, order create error, e: " + e.getMessage()); |
|
|
|
|