1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

style(*): unify punctuation marks from Chinese to English

Replace the ',' with ',' and ':' with ':'.
This commit is contained in:
2025-11-08 11:49:30 +08:00
parent 3ef301f199
commit 7d92717136
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -245,5 +245,5 @@ class AutoLib(MsgBase):
self._showTrace(f"浏览器驱动已关闭")
return True
else:
self._showTrace(f"浏览器驱动未初始化无需关闭")
self._showTrace(f"浏览器驱动未初始化, 无需关闭")
return False
+6 -6
View File
@@ -83,9 +83,9 @@ class LibReserve(LibOperator):
raise
if "预定好了" in title or "预约成功" in title or "操作成功" in title:
if len(contents) >= 6:
date_val = contents[1].split(" ")[1].strip() if " " in contents[1] else contents[1].strip()
time_val = contents[2].split(" ")[1].strip() if " " in contents[2] else contents[2].strip()
seat_val = contents[3].split(" ")[1].strip() if " " in contents[3] else contents[3].strip()
date_val = contents[1].split(" : ")[1].strip() if " : " in contents[1] else contents[1].strip()
time_val = contents[2].split(" : ")[1].strip() if " : " in contents[2] else contents[2].strip()
seat_val = contents[3].split(" : ")[1].strip() if " : " in contents[3] else contents[3].strip()
checkin_val = contents[5].strip()
self._showTrace(f"\n"\
f" 预约成功 !\n"\
@@ -140,7 +140,7 @@ class LibReserve(LibOperator):
except ValueError as e:
self._showTrace(
f"预约信息错误 ! : {e}, "\
f"由于缺少必要的预约信息 无法开始预约流程, 请检查预约信息是否完整"
f"由于缺少必要的预约信息, 无法开始预约流程, 请检查预约信息是否完整"
)
return False
@@ -224,7 +224,7 @@ class LibReserve(LibOperator):
reserve_info["begin_time"]["time"], reserve_info["end_time"]["time"] = end_time_str, begin_time_str
reserve_info["begin_time"]["prefer_early"], reserve_info["end_time"]["prefer_early"] = \
reserve_info["end_time"]["prefer_early"], reserve_info["begin_time"]["prefer_early"]
self._showTrace("预约开始时间晚于预约结束时间自动调换开始时间和结束时间")
self._showTrace("预约开始时间晚于预约结束时间, 自动调换开始时间和结束时间")
# update the begin_mins and end_mins after swap
begin_time_str, end_time_str = end_time_str, begin_time_str
@@ -246,7 +246,7 @@ class LibReserve(LibOperator):
reserve_info["end_time"]["time"] = self.__minsToTime(new_end_mins)
self._showTrace("预约持续时间超过8小时, 自动设置为 8 小时")
self._showTrace(
f"预约信息检查完成准备预约 "
f"预约信息检查完成, 准备预约 "
f"{reserve_info['date']} "
f"{reserve_info['begin_time']["time"]} - "
f"{reserve_info['end_time']["time"]} "
+2 -2
View File
@@ -70,7 +70,7 @@ class AutoLibWorker(QThread):
os.path.exists(path) for path in self.__config_paths.values()
):
self.showTraceSignal.emit(
"配置文件路径不存在请检查配置文件路径是否正确。"
"配置文件路径不存在, 请检查配置文件路径是否正确。"
)
return False
return True
@@ -102,7 +102,7 @@ class AutoLibWorker(QThread):
self.showTraceSignal.emit("AutoLibrary 运行结束")
except Exception as e:
self.showTraceSignal.emit(
f"AutoLibrary 运行时发生异常{e}"
f"AutoLibrary 运行时发生异常 : {e}"
)
finally:
self.finishedSignal.emit()