[重要]更新pom的package问题
This commit is contained in:
@@ -103,10 +103,5 @@
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>${commons.codec.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jsoup</groupId>
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>${jsoup.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
</project>
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user