Commit 80ff7d80 by zhiwei

将验证码链接转换为临时链接的重试次数修改为5次

parent 31581dce
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.zhiwei</groupId> <groupId>com.zhiwei</groupId>
<artifactId>wechat</artifactId> <artifactId>wechat</artifactId>
<version>1.2.6-SNAPSHOT</version> <version>1.2.7-SNAPSHOT</version>
<description> <description>
知微微信采集程序,包含 知微微信采集程序,包含
1.微信历史文章采集 1.微信历史文章采集
......
...@@ -55,7 +55,7 @@ public class WechatReal { ...@@ -55,7 +55,7 @@ public class WechatReal {
String word = originalUrl.split("query=")[1]; String word = originalUrl.split("query=")[1];
String searchUrl = "https://weixin.sogou.com/weixin?query="+ word; String searchUrl = "https://weixin.sogou.com/weixin?query="+ word;
for(int i=0; i<3; i++){ for(int i=0; i<5; i++){
try{ try{
headerMap.put("referer", searchUrl); headerMap.put("referer", searchUrl);
httpBoot.syncCall(RequestUtils.wrapGet(searchUrl, headerMap), proxy).body().string(); httpBoot.syncCall(RequestUtils.wrapGet(searchUrl, headerMap), proxy).body().string();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment