#1088 微信支付结果通知内容细微调整,希望能解决部分人遇到的变态问题

This commit is contained in:
Binary Wang
2019-07-14 14:24:34 +08:00
parent b3462243e5
commit 9149cd441a
2 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ public class WxPayNotifyResponse {
WxPayNotifyResponse response = new WxPayNotifyResponse(FAIL, msg);
XStream xstream = XStreamInitializer.getInstance();
xstream.autodetectAnnotations(true);
return xstream.toXML(response);
return xstream.toXML(response).replace("\n", "").replace(" ", "");
}
/**
@@ -57,7 +57,7 @@ public class WxPayNotifyResponse {
WxPayNotifyResponse response = new WxPayNotifyResponse(SUCCESS, msg);
XStream xstream = XStreamInitializer.getInstance();
xstream.autodetectAnnotations(true);
return xstream.toXML(response);
return xstream.toXML(response).replace("\n", "").replace(" ", "");
}
}