|
@ -20,11 +20,12 @@ public class SendP2PUtil {
|
|
|
params.add(new BasicNameValuePair("to", to));
|
|
|
params.add(new BasicNameValuePair("content", content));
|
|
|
params.add(new BasicNameValuePair("contentType",contentType));
|
|
|
String response = HttpClientUtil.post(url, params, "UTF-8");
|
|
|
if (StringUtils.isEmpty(response)) {
|
|
|
return "-1";
|
|
|
}else{
|
|
|
return "200";
|
|
|
}
|
|
|
//String response = HttpClientUtil.post(url, params, "UTF-8");
|
|
|
// if (StringUtils.isEmpty(response)) {
|
|
|
// return "-1";
|
|
|
// }else{
|
|
|
// return "200";
|
|
|
// }
|
|
|
return "200";
|
|
|
}
|
|
|
}
|