| | |
| | | saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]); |
| | | return result; |
| | | } |
| | | public static String startDoGetStringArtemisJson(String[] pathStr,Map<String,String> body ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | | String result = ArtemisHttpUtil.doGetArtemis(path, body, null, "application/json", header); |
| | | saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]); |
| | | return result; |
| | | } |
| | | public static String startDoPostStringArtemis(String[] pathStr,String param,String body ){ |
| | | Map<String, String> path = getPath(pathStr[0]+StringUtils.defaultString(param,"")); |
| | | Map<String, String> header = new HashMap<>(); |
| | |
| | | * 根据微信公众号信息获取AccessToken |
| | | * @return |
| | | */ |
| | | public static String wxAccessToken(String configId,String tagId) { |
| | | String[] wxAccessToken= HKConstants.InterfacePath.wxAccessToken; |
| | | wxAccessToken[0] = HKConstants.InterfacePath.wxAccessToken+"?tagId="+tagId+"&configId"+configId; |
| | | return startDoPostStringArtemis(wxAccessToken,""); |
| | | public static String wxAccessToken(HashMap<String,String> params ) { |
| | | // String[] wxAccessToken= new String[2]; |
| | | // String url = HKConstants.InterfacePath.wxAccessToken[0]+"?tagId="+tagId+"&configId="+configId; |
| | | // String t = HKConstants.InterfacePath.wxAccessToken[1]; |
| | | // wxAccessToken[0] = url; |
| | | // wxAccessToken[1] = t; |
| | | return startDoGetStringArtemisJson(HKConstants.InterfacePath.wxAccessToken,params); |
| | | } |
| | | /** |
| | | * 根据配置微信公众号编号查询微信公众号信息 |