Commit 22ff0845 by shenjunjie

调整逻辑错误

parent 3def1c02
......@@ -66,7 +66,7 @@ public class WechatReal {
response = httpBoot.syncCall(RequestUtils.wrapGet(url, headers), proxy);
String htmlBody = response.body().string();
// cookie过期
if (StringUtils.isNotBlank(htmlBody) || htmlBody.contains("验证码")) {
if (StringUtils.isBlank(htmlBody) || htmlBody.contains("验证码")) {
initCookie(url, headers, proxy);
continue;
}
......@@ -140,7 +140,9 @@ public class WechatReal {
// }
// public static void main(String[] args) throws Exception {
// WechatReal real = new WechatReal();
// WechatReal real = new WechatReal();
//// 119.3.86.205
//// 122.112.137.194
// Proxy proxy = new Proxy(Type.HTTP, new InetSocketAddress("119.3.86.205", 31128));
// String url = "https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS8FzrTzGEPrGvM6hiNXA4ZFfuz5MvdMSLVqXa8Fplpd9gowHZ2-xDps585u2obuOVGC2ke8iAlwOUW5Vlcs1qv8YeB2DBj_2dTSVEmgoED-M4y9lx6Ykc9IjDA2sWjYtSyDfEXs2p-nZB6QB9v1FTm3sgVx8MYuQh6L7kx32DJ4fKy9a6PM182aN3M2SXrGSIqAH50L-W7WN8EgDyGxD5NruL0unUdKkuw..&type=2&query=%E8%90%A5%E9%94%80&token=3ABD0306D5E9D84C3F3A954539751A493F10FC545F1FCD9F&k=61&h=M";
// String url1 = real.getRealLink(url, proxy);
......
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