一个叫<NameValuePair>的东西~~~

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 "";
		}
	}

  

posted @ 2016-09-26 16:31  余***龙  阅读(142)  评论(0编辑  收藏  举报