diff --git a/gui/ALConfigWidget.py b/gui/ALConfigWidget.py index 96a8436..73a3f36 100644 --- a/gui/ALConfigWidget.py +++ b/gui/ALConfigWidget.py @@ -268,7 +268,7 @@ class ALConfigWidget(QWidget, Ui_ALConfigWidget): self.DateEdit.setDate(QDate.currentDate()) self.DateEdit.setMinimumDate(QDate.currentDate()) self.DateEdit.setMaximumDate(QDate.currentDate()) - if QTime.currentTime() > QTime(19, 0, 0) and QTime.currentTime() < QTime(23, 0, 0): + if QTime.currentTime() > QTime(18, 0, 0) and QTime.currentTime() < QTime(23, 0, 0): self.DateEdit.setMaximumDate(QDate.currentDate().addDays(1)) self.BeginTimeEdit.setTime(QTime.currentTime()) self.PreferEarlyBeginTimeCheckBox.setChecked(False) @@ -479,7 +479,7 @@ class ALConfigWidget(QWidget, Ui_ALConfigWidget): if not config_path: config_path = QFileDialog.getOpenFileName( self, - "选择配置文件 - AutoLibrary", + "从现有配置文件中加载 - AutoLibrary", f"{QDir.toNativeSeparators(QDir.currentPath())}", "JSON 文件 (*.json);;所有文件 (*)" )[0] diff --git a/gui/ALConfigWidget.ui b/gui/ALConfigWidget.ui index 3f738d0..2982eab 100644 --- a/gui/ALConfigWidget.ui +++ b/gui/ALConfigWidget.ui @@ -560,6 +560,9 @@ 25 + + <html><head/><body><p>勾选此项,如果有多个与目标<span style=" font-weight:700; font-style:italic;">开始时间</span>相近的可选时间,选择时间最早项</p></body></html> + 优先选择最早 @@ -601,6 +604,9 @@ 25 + + <html><head/><body><p>期望的<span style=" font-weight:700; font-style:italic;">结束时间</span>不可用时,按照该偏差范围寻找最近可选时间</p></body></html> + 120 @@ -691,6 +697,9 @@ 25 + + <html><head/><body><p>期望的<span style=" font-weight:700; font-style:italic;">开始时间</span>不可用时,按照该偏差范围寻找最近可选时间</p></body></html> + 120 @@ -710,6 +719,9 @@ 25 + + <html><head/><body><p>勾选此项,如果有多个与目标<span style=" font-weight:700; font-style:italic;">结束时间</span>相近的可选时间,选择时间最晚项</p></body></html> + 优先选择最晚 @@ -789,6 +801,9 @@ 25 + + <html><head/><body><p>期望的预约时长,脚本会尽量满足</p></body></html> + 8.000000000000000 @@ -869,6 +884,9 @@ 25 + + <html><head/><body><p>勾选此项,会优先满足预约时长限制,当座位紧张时可能会导致<span style=" font-weight:700; font-style:italic;">预约失败</span></p></body></html> + 优先满足时长要求 @@ -1046,6 +1064,12 @@ 25 + + <html><head/><body><p>脚本运行使用的浏览器类型</p></body></html> + + + <html><head/><body><p><br/></p></body></html> + edge @@ -1113,6 +1137,12 @@ 25 + + <html><head/><body><p>详情请参阅根目录中的 manual.html</p></body></html> + + + <html><head/><body><p><br/></p></body></html> + @@ -1150,6 +1180,12 @@ 25 + + <html><head/><body><p>运行时不显示浏览器</p></body></html> + + + <html><head/><body><p><br/></p></body></html> + 无头模式 @@ -1237,6 +1273,9 @@ 25 + + <html><head/><body><p>无需更改</p></body></html> + 主机URL: @@ -1758,7 +1797,7 @@ - 载入配置 + 加载配置 diff --git a/gui/ALMainWindow.ui b/gui/ALMainWindow.ui index 56f3526..7a43677 100644 --- a/gui/ALMainWindow.ui +++ b/gui/ALMainWindow.ui @@ -127,6 +127,12 @@ 30 + + <html><head/><body><p>开始运行自动脚本</p></body></html> + + + <html><head/><body><p><br/></p></body></html> + background-color: rgb(10, 170, 10); font: 12pt "Microsoft YaHei UI";