|
|
@@ -148,8 +148,6 @@ public class HttpUtils
|
|
|
s.setContentType("application/json");
|
|
|
post.setEntity(s);
|
|
|
post.addHeader("content-type", "application/json");
|
|
|
- System.out.println("url = " + url);
|
|
|
- System.out.println("param = " + param);
|
|
|
HttpResponse res = client.execute(post);
|
|
|
if (res.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
|
|
|
if (res.getEntity().getContentType().getValue().equalsIgnoreCase("image/jpeg")) {
|
|
|
@@ -167,7 +165,6 @@ public class HttpUtils
|
|
|
return encoder;
|
|
|
}
|
|
|
String result = EntityUtils.toString(res.getEntity());// 返回json格式
|
|
|
- System.out.println("推送成功" + result);
|
|
|
return result;
|
|
|
} else {
|
|
|
System.out.println("推送失败");
|
|
|
@@ -308,7 +305,6 @@ public class HttpUtils
|
|
|
*/
|
|
|
public static String sendPost(String url, String param)
|
|
|
{
|
|
|
- System.out.println(param);
|
|
|
PrintWriter out = null;
|
|
|
BufferedReader in = null;
|
|
|
StringBuilder result = new StringBuilder();
|