From 07e01141c4c9d104e6f2b861a21547a3eb1bf605 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期四, 20 七月 2023 10:57:29 +0800 Subject: [PATCH] 优化调用 --- src/main/java/com/hx/mp/util/MPWeixinBaseUtil.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/hx/mp/util/MPWeixinBaseUtil.java b/src/main/java/com/hx/mp/util/MPWeixinBaseUtil.java index bdc522e..69e0c4a 100644 --- a/src/main/java/com/hx/mp/util/MPWeixinBaseUtil.java +++ b/src/main/java/com/hx/mp/util/MPWeixinBaseUtil.java @@ -3,6 +3,8 @@ import com.hx.util.OSSUtil; import com.hx.util.SimpleTool; import com.hx.util.StringUtils; +import com.hz.util.http.HttpHzUtil; +import com.hz.util.http.dto.HttpHzResponse; import net.sf.json.JSONException; import net.sf.json.JSONObject; import org.apache.commons.codec.binary.Base64; @@ -821,16 +823,16 @@ * 鑾峰彇灏忕▼搴忚闃呮ā鏉� * @param accessToken token * **/ - public static JSONObject appTemplateList(String accessToken) { - return HttpURLUtil(GET_APP_TEMPLATE+accessToken,""); + public static HttpHzResponse appTemplateList(String accessToken) { + return HttpHzUtil.HttpURLUtilJson(GET_APP_TEMPLATE + accessToken, null,null,null,"GET",null); } /** * 鍏紬鍙疯闃呮ā鏉� * @param accessToken token * **/ - public static JSONObject gzhTemplateList(String accessToken) { - return HttpURLUtil(GET_GZH_TEMPLATE+accessToken,""); + public static HttpHzResponse gzhTemplateList(String accessToken) { + return HttpHzUtil.HttpURLUtilJson(GET_GZH_TEMPLATE+accessToken, null,null,null,"GET",null); } } -- Gitblit v1.8.0