mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-02-15 21:06:30 +08:00
#1088 微信支付结果通知内容细微调整,希望能解决部分人遇到的变态问题
This commit is contained in:
@@ -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(" ", "");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user