|
@@ -22,7 +22,7 @@ public class WxHttp {
|
|
|
String rs = HttpUtil.get(GLOBAL_CONNECT_TIMEOUT, GLOBAL_READ_TIMEOUT, url, queryParas, null);
|
|
String rs = HttpUtil.get(GLOBAL_CONNECT_TIMEOUT, GLOBAL_READ_TIMEOUT, url, queryParas, null);
|
|
|
logger.info("微信get请求返回结果:{}",rs);
|
|
logger.info("微信get请求返回结果:{}",rs);
|
|
|
if(rs == null) {
|
|
if(rs == null) {
|
|
|
- throw new BusinessException("与微信服务器网络不通");
|
|
|
|
|
|
|
+ throw new RuntimeException("与微信服务器网络不通");
|
|
|
}
|
|
}
|
|
|
T wxRs = JSON.parseObject(rs, clazz);
|
|
T wxRs = JSON.parseObject(rs, clazz);
|
|
|
if(!wxRs.isSuccess()) {
|
|
if(!wxRs.isSuccess()) {
|
|
@@ -41,7 +41,7 @@ public class WxHttp {
|
|
|
String rs = HttpUtil.post(GLOBAL_CONNECT_TIMEOUT, GLOBAL_READ_TIMEOUT, url,json.toJSONString());
|
|
String rs = HttpUtil.post(GLOBAL_CONNECT_TIMEOUT, GLOBAL_READ_TIMEOUT, url,json.toJSONString());
|
|
|
logger.info("微信post请求返回结果:{}",rs);
|
|
logger.info("微信post请求返回结果:{}",rs);
|
|
|
if(rs == null) {
|
|
if(rs == null) {
|
|
|
- throw new BusinessException("与微信服务器网络不通");
|
|
|
|
|
|
|
+ throw new RuntimeException("与微信服务器网络不通");
|
|
|
}
|
|
}
|
|
|
T wxRs = JSON.parseObject(rs, clazz);
|
|
T wxRs = JSON.parseObject(rs, clazz);
|
|
|
if(!wxRs.isSuccess()) {
|
|
if(!wxRs.isSuccess()) {
|