Skip to content

Commit 69abf4b

Browse files
authoredFeb 24, 2018
fix wechat-identify-unlock and fix #165 and fix #167 (#176)
1 parent 5aa0f9d commit 69abf4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎wechatsogou/api.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ def __get_by_unlock(self, url, referer=None, unlock_platform=None, unlock_callba
113113
if i == self.captcha_break_times - 1:
114114
raise WechatSogouVcodeOcrException(e)
115115

116-
resp = self.__get(url, session, headers=self.__set_cookie(referer=referer))
116+
if '请输入验证码' in resp.text:
117+
resp = session.get(url)
118+
else:
119+
resp = self.__get(url, session, headers=self.__set_cookie(referer=referer))
117120

118121
return resp
119122

0 commit comments

Comments
 (0)
Please sign in to comment.