String notifyUrl =“http://192.168.0.52:8080”;
List<NameValuePair> paramList = new ArrayList<NameValuePair>();
// 接口需要的参数
paramList.add(new BasicNameValuePair("userName", userName));
paramList.add(new BasicNameValuePair("userPwd", new MD5().getMD5ofStr(userPwd)));
paramList.add(new BasicNameValuePair("nameEn", ysTableName));
paramList.add(new BasicNameValuePair("exchangeNode", sharedNode));
String paramList2Str = EntityUtils.toString(new UrlEncodedFormEntity(paramList, Consts.UTF_8));
notifyUrl = String.format("%s?%s", notifyUrl, paramList2Str);
1122
最新推荐文章于 2022-03-16 13:41:17 发布