| | |
| | | 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; |
| | |
| | | obj.put("line_color", lineColor); |
| | | obj.put("is_hyaline", isHyaline); |
| | | obj.put("env_version", env_version); |
| | | //体验版时,可不检查页面是否存在 |
| | | if("trial".equals(env_version)){ |
| | | obj.put("check_path", false); |
| | | } |
| | | // 创建url资源 |
| | | URL url = new URL(StringUtils.format(URL_UNLIMIT_SQUARE, at)); |
| | | // 建立http连接 |
| | |
| | | * 获取小程序订阅模板 |
| | | * @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); |
| | | } |
| | | |
| | | } |