待补平差检查和上传逻辑
This commit is contained in:
@@ -547,6 +547,10 @@ def grant_appium_permissions(device_id: str, require_all: bool = False) -> bool:
|
||||
"""
|
||||
修复版:为 Appium 授予权限(使用正确的方法)
|
||||
"""
|
||||
if not device_id:
|
||||
logging.error("设备 ID 为空,无法授予 Appium 权限")
|
||||
return False
|
||||
|
||||
logging.info(f"设备 {device_id}:开始设置Appium权限")
|
||||
|
||||
# 1. 使用系统设置命令(替代原来的pm grant尝试)
|
||||
@@ -1084,6 +1088,11 @@ def go_main_click_tabber_button(driver, device_id, tabber_button_text, max_retri
|
||||
返回:
|
||||
bool: 成功返回True,失败返回False
|
||||
"""
|
||||
# 检查沉降观测应用是否已启动
|
||||
if not is_app_launched(driver):
|
||||
logging.warning(f"设备 {device_id} 沉降观测应用未启动")
|
||||
return False
|
||||
|
||||
retry_count = 0
|
||||
|
||||
while retry_count < max_retries:
|
||||
|
||||
Reference in New Issue
Block a user