From 5f0b60f331936ac844b661af21ed334b9c90f6d4 Mon Sep 17 00:00:00 2001
From: ramen <1205925392@qq.com>
Date: Wed, 16 Oct 2024 00:24:42 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=AD=89=E5=BE=85=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E6=89=AB=E7=A0=81=E7=9A=84=E6=97=B6=E9=97=B4=E5=88=B0?=
=?UTF-8?q?90=E7=A7=92=EF=BC=8C=E5=92=8C=E9=9C=80=E8=A6=81=E9=AA=8C?=
=?UTF-8?q?=E8=AF=81=E7=A0=81=E6=97=B6=E5=86=8D=E7=AD=89=E5=BE=8530?=
=?UTF-8?q?=E7=A7=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
plugins/dynamicwechat/__init__.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/plugins/dynamicwechat/__init__.py b/plugins/dynamicwechat/__init__.py
index 90151f6..3696319 100644
--- a/plugins/dynamicwechat/__init__.py
+++ b/plugins/dynamicwechat/__init__.py
@@ -285,9 +285,9 @@ class DynamicWeChat(_PluginBase):
if self._pushplus_token and self._helloimg_s_token:
img_src, refuse_time = self.upload_image(self._qr_code_image)
self.send_pushplus_message(refuse_time, f"企业微信登录二维码
")
- logger.info("二维码已经发送,等待用户 60 秒内扫码登录")
+ logger.info("二维码已经发送,等待用户 90 秒内扫码登录")
logger.info("如收到短信验证码请以?结束,发送到<企业微信应用> 如: 110301?")
- time.sleep(60)
+ time.sleep(90)
login_status = self.check_login_status(page)
if login_status:
self._update_cookie(page, context) # 刷新cookie
@@ -317,9 +317,9 @@ class DynamicWeChat(_PluginBase):
if self._pushplus_token and self._helloimg_s_token:
img_src, refuse_time = self.upload_image(self._qr_code_image)
self.send_pushplus_message(refuse_time, f"企业微信登录二维码
")
- logger.info("二维码已经发送,等待用户 60 秒内扫码登录")
+ logger.info("二维码已经发送,等待用户 90 秒内扫码登录")
logger.info("如收到短信验证码请以?结束,发送到<企业微信应用> 如: 110301?")
- time.sleep(60) # 等待用户扫码
+ time.sleep(90) # 等待用户扫码
login_status = self.check_login_status(page)
if login_status:
self._update_cookie(page, context) # 刷新cookie
@@ -465,7 +465,7 @@ class DynamicWeChat(_PluginBase):
# 在这里使用更安全的方式来检查元素是否存在
captcha_panel = page.wait_for_selector('.receive_captcha_panel', timeout=5000) # 检查验证码面板
if captcha_panel: # 出现了短信验证界面
- time.sleep(10) # 多等10秒
+ time.sleep(30) # 多等30秒
if self.text[:6]:
logger.info("需要短信验证 收到的短信验证码:" + self.text[:6])
for digit in self.text[:6]: