From ebe3910df596ccf938f802cacda6a59be58f8931 Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Tue, 10 Mar 2026 11:00:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(AutoLib):=20=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=A2=84=E7=BA=A6=EF=BC=8C=E7=AD=BE=E5=88=B0=E5=92=8C?= =?UTF-8?q?=E7=BB=AD=E7=BA=A6=E5=8A=9F=E8=83=BD=E7=9A=84=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 边缘情况下,即用户当前的预约时间满足签到或者续约的时间范围要求时,预期的处理顺序是先进行预约,再进行签到或者续约。 该提交修复了对这种情况的处理逻辑,确保先进行预约,再进行签到或者续约。 --- src/operators/AutoLib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operators/AutoLib.py b/src/operators/AutoLib.py index 649e551..651aa09 100644 --- a/src/operators/AutoLib.py +++ b/src/operators/AutoLib.py @@ -241,7 +241,7 @@ class AutoLib(MsgBase): self._showTrace(f"用户 {username} 无法预约,已跳过") result = 2 # checkin - if run_mode["auto_checkin"] and result == 2: + if run_mode["auto_checkin"] and result != 1: if self.__lib_checker.canCheckin(): if self.__lib_checkin.checkin(username): result = 0 @@ -251,7 +251,7 @@ class AutoLib(MsgBase): self._showTrace(f"用户 {username} 无法签到,已跳过") result = 2 # renewal - if run_mode["auto_renewal"] and result == 2: + if run_mode["auto_renewal"] and result != 1: can_renew, record = self.__lib_checker.canRenew() if can_renew: if self.__lib_renew.renew(username, record, reserve_info):