From 269448bc8edba36d772519bfed74fba3762bcbb1 Mon Sep 17 00:00:00 2001 From: nee Date: Wed, 15 May 2019 00:39:14 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=9C=AA408=E4=B8=8D=E9=87=8D=E6=96=B0=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itchat/components/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchat/components/login.py b/itchat/components/login.py index c1fb0391..e199a7ff 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -59,7 +59,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, if isLoggedIn is not None: logger.info('Please press confirm on your phone.') isLoggedIn = None - elif status != '408': + elif status == '408': break if isLoggedIn: break From 7b9b59504d9f65283cc157da21839e34c8826bf6 Mon Sep 17 00:00:00 2001 From: nee Date: Wed, 15 May 2019 01:59:16 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E9=9A=94=E4=B8=80=E7=A7=92=E5=86=8D?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=99=BB=E5=BD=95=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itchat/components/login.py | 1 + 1 file changed, 1 insertion(+) diff --git a/itchat/components/login.py b/itchat/components/login.py index e199a7ff..2e4cf9e4 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -61,6 +61,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, isLoggedIn = None elif status == '408': break + time.sleep(1) if isLoggedIn: break elif self.isLogging: From 2c3c9c5fa2167db2b235878357f6512b64f007b2 Mon Sep 17 00:00:00 2001 From: nee Date: Wed, 15 May 2019 02:01:44 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E9=9A=94=E4=B8=80=E7=A7=92=E5=86=8D?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=99=BB=E5=BD=95=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itchat/components/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchat/components/login.py b/itchat/components/login.py index 2e4cf9e4..72042629 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -61,7 +61,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, isLoggedIn = None elif status == '408': break - time.sleep(1) + time.sleep(1) if isLoggedIn: break elif self.isLogging: From 5fc08f544b9f7a8936001a0299706ed921987809 Mon Sep 17 00:00:00 2001 From: nee Date: Wed, 15 May 2019 02:03:50 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E9=9A=94=E4=B8=80=E7=A7=92=E5=86=8D?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=99=BB=E5=BD=95=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itchat/components/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchat/components/login.py b/itchat/components/login.py index 72042629..0f2aba1c 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -61,7 +61,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, isLoggedIn = None elif status == '408': break - time.sleep(1) + time.sleep(1) if isLoggedIn: break elif self.isLogging: From dd54940de627455d746d4ef0d1c32704ca097aea Mon Sep 17 00:00:00 2001 From: nee Date: Wed, 15 May 2019 11:27:13 +0800 Subject: [PATCH 5/6] =?UTF-8?q?400=E4=B9=9F=E7=9B=B4=E6=8E=A5=E9=80=80?= =?UTF-8?q?=E5=87=BA=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itchat/components/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchat/components/login.py b/itchat/components/login.py index 0f2aba1c..1e65ba9a 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -59,7 +59,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, if isLoggedIn is not None: logger.info('Please press confirm on your phone.') isLoggedIn = None - elif status == '408': + elif status == ['408', '400']: break time.sleep(1) if isLoggedIn: From 849de6af022f6dfeef9a0334bea617df09681fea Mon Sep 17 00:00:00 2001 From: nee Date: Fri, 24 May 2019 11:13:13 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug:=20=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=A0=81=E4=B8=BA408=E6=88=96=E8=80=85400,=20=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E9=87=8D=E6=96=B0=E6=89=AB=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itchat/components/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchat/components/login.py b/itchat/components/login.py index 1e65ba9a..c4e04ecf 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -59,7 +59,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, if isLoggedIn is not None: logger.info('Please press confirm on your phone.') isLoggedIn = None - elif status == ['408', '400']: + elif status in ['408', '400']: break time.sleep(1) if isLoggedIn: