danchaofan1412 3 лет назад
Родитель
Сommit
13671e0572

+ 3 - 1
framework-common/src/main/java/com/mrxu/framework/common/weixin/base/WxHttp.java

@@ -20,6 +20,7 @@ public class WxHttp {
 	
 	public static <T extends WxResult> T get(Class<T> clazz, String url, Map<String, String> queryParas) {
 		String rs = HttpUtil.get(GLOBAL_CONNECT_TIMEOUT, GLOBAL_READ_TIMEOUT, url, queryParas, null);
+		logger.info("微信get请求返回结果:{}",rs);
 		if(rs == null) {
 			throw new BusinessException("与微信服务器网络不通");
 		}
@@ -32,17 +33,18 @@ public class WxHttp {
 	
 	public static JSONObject get(String url, Map<String, String> queryParas) {
 		String rs = HttpUtil.get(GLOBAL_CONNECT_TIMEOUT, GLOBAL_READ_TIMEOUT, url, queryParas, null);
+		logger.info("微信请求返回结果:{}",rs);
         return JSON.parseObject(rs);
     }
 	
 	public static <T extends WxResult> T post(Class<T> clazz, String url, JSONObject json) {
 		String rs = HttpUtil.post(GLOBAL_CONNECT_TIMEOUT, GLOBAL_READ_TIMEOUT, url,json.toJSONString());
+		logger.info("微信post请求返回结果:{}",rs);
 		if(rs == null) {
 			throw new BusinessException("与微信服务器网络不通");
 		}
 		T wxRs = JSON.parseObject(rs, clazz);
 		if(!wxRs.isSuccess()) {
-			logger.error(rs);
 			throw new RuntimeException(wxRs.getErrmsg());
 		}
         return wxRs;