HerveyHall

Results 3 comments of HerveyHall

> seata 是基于蚂蚁SOFAboot的吧,它里面为了做模块隔离和类隔离,自定义了Classloader。xjar应该是不能直接用了,需要根据SOFAboot ark的相关原理修改xjar 非常感谢。

目前查看源码发现postV3方法中请求接口时已经添加Wechatpay-Serial请求头,所以对于get请求也可以暂时在获取WxPayService实例时通过重写getV3方法来解决,代码如下: ``` private static com.github.binarywang.wxpay.service.WxPayService getWxPayService(WxPayConfig payConfig) { com.github.binarywang.wxpay.service.WxPayService wxPayService = new com.github.binarywang.wxpay.service.impl.WxPayServiceImpl() { @Override public String getV3(String url) throws WxPayException { HttpGet httpGet = new HttpGet(url); httpGet.addHeader("Accept", "application/json"); httpGet.addHeader("Content-Type",...

> 那现在getV3存在的意义是什么? 很遗憾,我的项目里WxJava只用于支付场景,而getV3方法在很多其他场景下也会有调用,我无法确定是否都存在同样问题,因此还需要更多的验证