Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenweiyang
wechat
Commits
22ff0845
Commit
22ff0845
authored
Jul 30, 2020
by
shenjunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整逻辑错误
parent
3def1c02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/main/java/com/zhiwei/wechat/search/WechatReal.java
+3
-1
No files found.
src/main/java/com/zhiwei/wechat/search/WechatReal.java
View file @
22ff0845
...
...
@@ -66,7 +66,7 @@ public class WechatReal {
response
=
httpBoot
.
syncCall
(
RequestUtils
.
wrapGet
(
url
,
headers
),
proxy
);
String
htmlBody
=
response
.
body
().
string
();
// cookie过期
if
(
StringUtils
.
is
Not
Blank
(
htmlBody
)
||
htmlBody
.
contains
(
"验证码"
))
{
if
(
StringUtils
.
isBlank
(
htmlBody
)
||
htmlBody
.
contains
(
"验证码"
))
{
initCookie
(
url
,
headers
,
proxy
);
continue
;
}
...
...
@@ -141,6 +141,8 @@ public class WechatReal {
// public static void main(String[] args) throws Exception {
// 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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment