修改获取截图时间文件路径为D:\\uploadInfo\\Logs\\
This commit is contained in:
@@ -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())}")
|
||||
|
||||
Reference in New Issue
Block a user