update md
This commit is contained in:
@@ -1 +1,5 @@
|
||||
支付模块【JSP AY】【NATIVE PAY】【APP PAY】
|
||||
支付模块【JSAPI】【NATIVE】
|
||||
微信公众平台[V2版本支付]文档(https://mp.weixin.qq.com/paymch/readtemplate?t=mp/business/course2_tmpl&lang=zh_CN&token=6056275)
|
||||
微信公众平台[V3版本支付]文档(https://mp.weixin.qq.com/paymch/readtemplate?t=mp/business/course3_tmpl&lang=zh_CN&token=6056275)
|
||||
|
||||
**在`2014年10月9号`之前申请并审核通过的支付接口应该属于`V2版本`支付,而之后申请的接口则为`V3版本`支付**
|
||||
+6
-7
@@ -31,13 +31,14 @@ import com.thoughtworks.xstream.mapper.Mapper;
|
||||
*/
|
||||
public class RefundConverter {
|
||||
private final static XStream xStream = XStream.get();
|
||||
private final ReflectionConverter reflectionConverter;
|
||||
private final Mapper mapper;
|
||||
private final ReflectionProvider reflectionProvider;
|
||||
|
||||
public RefundConverter() {
|
||||
xStream.processAnnotations(Refund.class);
|
||||
xStream.registerConverter(new RefundConverter.$());
|
||||
reflectionConverter = new ReflectionConverter(xStream.getMapper(),
|
||||
xStream.getReflectionProvider());
|
||||
this.mapper = xStream.getMapper();
|
||||
this.reflectionProvider = xStream.getReflectionProvider();
|
||||
}
|
||||
|
||||
public String toXML(Refund refund) {
|
||||
@@ -57,7 +58,8 @@ public class RefundConverter {
|
||||
@Override
|
||||
public void marshal(Object source, HierarchicalStreamWriter writer,
|
||||
MarshallingContext context) {
|
||||
reflectionConverter.marshal(source, writer, context);
|
||||
new ReflectionConverter(mapper, reflectionProvider).marshal(source,
|
||||
writer, context);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -65,9 +67,6 @@ public class RefundConverter {
|
||||
public Object unmarshal(HierarchicalStreamReader reader,
|
||||
UnmarshallingContext context) {
|
||||
Refund refund = new Refund();
|
||||
Mapper mapper = xStream.getMapper();
|
||||
ReflectionProvider reflectionProvider = xStream
|
||||
.getReflectionProvider();
|
||||
Pattern pattern = Pattern.compile("(_\\d)$");
|
||||
Matcher matcher = null;
|
||||
Map<String, Map<String, String>> outMap = new HashMap<String, Map<String, String>>();
|
||||
|
||||
Reference in New Issue
Block a user