走微信退款接口报下面错误,参数是没问题的,同样的参数用其它请求方式能正常退款
java.lang.RuntimeException: java.net.ConnectException: Failed to connect to api.mch.weixin.qq.com/240e:ff:f101:10:0:0:0:1a:443
at com.jfinal.weixin.sdk.utils.HttpUtils$OkHttp3Delegate.postSSL(HttpUtils.java:372)
at com.jfinal.weixin.sdk.utils.HttpUtils.postSSL(HttpUtils.java:44)
at com.jfinal.weixin.sdk.api.PaymentApi.refund(PaymentApi.java:152)
开发与微信平台交互的项目,一定要先搭建一个调试环境,参考我的博客:
https://my.oschina.net/jfinal/blog/336861