From 6dd4b42a6ae537be106191aaf2778384a4e62cf9 Mon Sep 17 00:00:00 2001 From: sbilly Date: Wed, 24 Feb 2016 17:21:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E9=94=81=E8=BF=9B=E9=A3=8E?= =?UTF-8?q?=E6=A0=BC=20Changes=20to=20be=20committed:=20=09modified:=20=20?= =?UTF-8?q?=20weixin.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weixin.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/weixin.py b/weixin.py index 7a5a05b..cb9d182 100755 --- a/weixin.py +++ b/weixin.py @@ -650,16 +650,16 @@ def sendMsgToAll(self, word): @catchKeyboardInterrupt def start(self): self._echo('[*] 微信网页版 ... 开动'); print; logging.debug('[*] 微信网页版 ... 开动') - while True: - self._run('[*] 正在获取 uuid ... ', self.getUUID) - self._echo('[*] 正在获取二维码 ... 成功'); print; logging.debug('[*] 微信网页版 ... 开动'); self.genQRCode() - print '[*] 请使用微信扫描二维码以登录 ... ' - if not self.waitForLogin(): - continue - print '[*] 请在手机上点击确认以登录 ... ' - if not self.waitForLogin(0): - continue - break + while True: + self._run('[*] 正在获取 uuid ... ', self.getUUID) + self._echo('[*] 正在获取二维码 ... 成功'); print; logging.debug('[*] 微信网页版 ... 开动'); self.genQRCode() + print '[*] 请使用微信扫描二维码以登录 ... ' + if not self.waitForLogin(): + continue + print '[*] 请在手机上点击确认以登录 ... ' + if not self.waitForLogin(0): + continue + break self._run('[*] 正在登录 ... ', self.login) self._run('[*] 微信初始化 ... ', self.webwxinit)