From d83ca7557e8fe122d588f8884b6b6d67c9b043b3 Mon Sep 17 00:00:00 2001 From: YiLin <482244139@qq.com> Date: Tue, 10 Feb 2026 17:49:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E6=88=AA?= =?UTF-8?q?=E5=9B=BE=E6=97=B6=E9=97=B4=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=B8=BAD:\\uploadInfo\\Logs\\?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- page_objects/screenshot_page.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/page_objects/screenshot_page.py b/page_objects/screenshot_page.py index 4b4aa75..d261164 100644 --- a/page_objects/screenshot_page.py +++ b/page_objects/screenshot_page.py @@ -1336,7 +1336,7 @@ class ScreenshotPage: self.logger.info(f"设备 {device_id} 等待 {timeout} 秒未发现确认弹窗,可能没有弹窗,返回成功") return True - def load_line_time_mapping_dict(self, filename="20251022.1.CZSCZQ-3fhg0410.txt", log_directory="D:\\soft\\安卓时间修改-v0.7.13-1\\Logs\\202510", poll_interval=120, max_wait_time=18000): + def load_line_time_mapping_dict(self, filename="20251022.1.CZSCZQ-3fhg0410.txt", log_directory="D:\\uploadInfo\\Logs\\202510", poll_interval=120, max_wait_time=18000): """ 加载指定文件中的线路编码和时间到全局字典 参数: @@ -1422,7 +1422,7 @@ class ScreenshotPage: """执行截图页面管理操作""" try: # 加载指定文件中的线路编码和时间到全局字典 - if not self.load_line_time_mapping_dict("20251022.1.CZSCZQ-3fhg0410.txt", "D:\\soft\\安卓时间修改-v0.7.13-1\\Logs\\202510"): + if not self.load_line_time_mapping_dict("20251022.1.CZSCZQ-3fhg0410.txt", "D:\\uploadInfo\\Logs\\202510"): self.logger.error(f"设备 {device_id} 加载线路时间映射字典失败") return False @@ -1452,7 +1452,7 @@ class ScreenshotPage: time.sleep(60) # 等待3分钟 # 重新加载文件 - if not self.load_line_time_mapping_dict("20251022.1.CZSCZQ-3fhg0410.txt", "D:\\soft\\安卓时间修改-v0.7.13-1\\Logs\\202510"): + if not self.load_line_time_mapping_dict("20251022.1.CZSCZQ-3fhg0410.txt", "D:\\uploadInfo\\Logs\\202510"): self.logger.error(f"设备 {device_id} 重新加载线路时间映射字典失败") else: self.logger.info(f"设备 {device_id} 重新加载完成,新的线路时间数量: {len(global_variable.get_line_time_mapping_dict())}")