添加重试

This commit is contained in:
2026-03-14 17:53:14 +08:00
parent b80f553009
commit 19afa3d19b
7 changed files with 37 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import globals.driver_utils as driver_utils
import actions
import check_station
from check_station import get_excel_from_url
import globals.create_link as create_link
PORT = "COM9"
BAUD = 115200
@@ -24,6 +25,7 @@ RESPONSE_PAYLOAD = {
def main() -> int:
create_link.setup_adb_wireless()
driver, wait, device_id = DriverManager.get_driver()
url = f"https://database.yuxindazhineng.com/team-bucket/69378c5b4f42d83d9504560d/前测点表/20260309/CDWZQ-2标-龙家沟左线大桥-0-11号墩-平原.xlsx"
station_data = get_excel_from_url(url)
@@ -49,7 +51,7 @@ def main() -> int:
# station等于0时启动actions.py
if station_value == 0:
print("\n🚀 站点编号为0启动 actions.py")
print("🚀 站点编号为0启动 actions.py\n")
# 启动 actions.py
app = actions.DeviceAutomation(driver=driver, wait=wait, device_id=device_id)
app.run_automation()
@@ -57,7 +59,7 @@ def main() -> int:
# station大于0时启动check_station.py
elif station_value > 0 and over_station_num < station_quantity and station_value not in over_station_list:
print(f"\n🚀 站点编号为{station_value},启动 check_station.py")
print(f"🚀 站点编号为{station_value},启动 check_station.py\n")
# 启动 check_station.py
# driver_utils.ensure_appium_server_running()
app = check_station.CheckStation(driver, wait, device_id)