1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-18 15:33:03 +08:00

style(*): some small style changes

This commit is contained in:
2025-11-30 18:46:12 +08:00
parent 05c9d433f4
commit 03fe0d7703
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ class AutoLib(MsgBase):
result = 2 result = 2
# logout # logout
if not self.__lib_logout.logout( if not self.__lib_logout.logout(
username, username
): ):
# if logout is failed, we must make sure the host to be reloaded # if logout is failed, we must make sure the host to be reloaded
# otherwise, the next login may fail # otherwise, the next login may fail
+6 -3
View File
@@ -70,18 +70,21 @@ class LibCheckin(LibOperator):
f" {details[1]}\n"\ f" {details[1]}\n"\
f" {details[2]}\n"\ f" {details[2]}\n"\
f" {details[3]}\n"\ f" {details[3]}\n"\
f" {details[4]}") f" {details[4]}"
)
else: else:
self._showTrace(f"\n"\ self._showTrace(f"\n"\
" 签到成功 !\n"\ " 签到成功 !\n"\
" 未获取到签到详情 !") " 未获取到签到详情 !"
)
ok_btn.click() ok_btn.click()
return True return True
else: else:
failure_reason = result_message.replace("签到失败", "").strip() failure_reason = result_message.replace("签到失败", "").strip()
self._showTrace(f"\n"\ self._showTrace(f"\n"\
" 签到失败 !\n"\ " 签到失败 !\n"\
f" {failure_reason}") f" {failure_reason}"
)
ok_btn.click() ok_btn.click()
return False return False
+6 -4
View File
@@ -88,11 +88,13 @@ class LibReserve(LibOperator):
f" {contents[1]}\n"\ f" {contents[1]}\n"\
f" {contents[2]}\n"\ f" {contents[2]}\n"\
f" {contents[3]}\n"\ f" {contents[3]}\n"\
f" 签到时间 {contents[5]}") f" 签到时间 {contents[5]}"
)
else: else:
self._showTrace(f"\n"\ self._showTrace("\n"\
f" 预约成功 !\n"\ " 预约成功 !\n"\
f" 未找获取到详细信息") " 未找获取到详细信息"
)
return True return True
except: except:
self._showTrace(f"预约结果加载失败 !") self._showTrace(f"预约结果加载失败 !")