[重要]更新pom的package问题

This commit is contained in:
jy.hu
2014-11-10 13:26:29 +08:00
parent ff436b6f03
commit ef39c25f66
11 changed files with 78 additions and 39 deletions
@@ -33,8 +33,6 @@ import org.apache.http.impl.conn.PoolingClientConnectionManager;
import org.apache.http.params.CoreConnectionPNames;
import org.apache.http.params.CoreProtocolPNames;
import org.apache.http.util.EntityUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import com.alibaba.fastjson.JSONException;
import com.foxinmy.weixin4j.exception.WeixinException;
@@ -198,8 +196,7 @@ public class HttpRequest {
if (contentType.getValue().contains(
ContentType.TEXT_HTML.getMimeType())) {
response.setText(new String(data, "gbk"));
Document doc = Jsoup.parse(response.getAsString());
throw new WeixinException(doc.body().text());
throw new WeixinException(response.getAsString());
} else if (contentType.getValue().contains(
ContentType.APPLICATION_JSON.getMimeType())) {
checkJson(response);