From 337b6ef719da8c0d5e8c4b61b7fc1636d1b3cb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=B3=E5=8D=97=E7=9C=81WiFi=E6=94=BB=E9=98=B2=E7=A0=94?= =?UTF-8?q?=E7=A9=B6=E6=89=80?= <90495619+WAADRI@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:41:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0cookie=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8F=8C=E6=8E=A5=E5=8F=A3=E7=9B=91=E6=8E=A7=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=85=B6=E5=AE=83bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加cookie自动更新功能,修复双接口监控问题,修复其它bug --- other-signin-node.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/other-signin-node.py b/other-signin-node.py index 5a2a40f..115e2b4 100644 --- a/other-signin-node.py +++ b/other-signin-node.py @@ -222,7 +222,7 @@ async def interface_two(uid, courseid, classid, na): user_list[uid]["error_num"] = 0 asyncio.create_task(stop_reason(3, uid)) return 1 - elif 3 in user_list[uid]["port"]: + else: return await interface_three(uid, courseid, classid, na) except Exception as e: logging.error(str(e.__traceback__.tb_lineno)+str(e)) @@ -230,7 +230,7 @@ async def interface_two(uid, courseid, classid, na): async def interface_three(uid, courseid, classid, na): try: - if 3 in user_list[uid]["port"]: + if 2 not in user_list[uid]["port"]: if str(user_list[uid]["schoolid"]) == "": fid = "0" else: @@ -277,7 +277,7 @@ async def interface_three(uid, courseid, classid, na): user_list[uid]["error_num"] = 0 asyncio.create_task(stop_reason(3, uid)) return 1 - elif 2 in user_list[uid]["port"]: + else: return await interface_two(uid, courseid, classid, na) except Exception as e: logging.error(str(e.__traceback__.tb_lineno)+str(e))