public String getInviteRelation(String phone){ String url = PropertiesUtil.getPropertyValue("HHRURL") + "****.do"; List<NameValuePair> params=new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("phone",phone)); String result = doGet(url, params, "getInviteRelation"); if(result != null && !result.trim().equals("")){ Map resultMap = JSONObject.fromObject(result); log.info("getInviteRelation resultMap="+resultMap.toString()); return String.valueOf(((Map)resultMap.get("respContent")).get("token")); }else{ return ""; } }
时间: 2024-11-07 14:07:38