This commit is contained in:
HuangHai
2026-01-16 19:51:39 +08:00
parent 8a9d71f1de
commit 8c2e8bcb0a
6 changed files with 3 additions and 3 deletions

View File

@@ -231,7 +231,7 @@ async def get_station_list(d, service, max_stations_count=MAX_STATIONS_COUNT):
logger.warning(f"'分时价格'按钮识别坐标 ({click_x}, {click_y}) 落在底部安全区域 (>= {bottom_safe_y}),为避免误触底部扫码/导航按钮,本次不点击。")
else:
d.click(click_x, click_y)
await asyncio.sleep(2)
await asyncio.sleep(0.5)
# 检查页面是否真的变化了
after_click_path = take_screenshot(d, f"check_{detail_uuid}", save_dir=TEMP_IMAGE_DIR)

View File

@@ -307,7 +307,7 @@ async def get_station_list(d, service, uploader, max_stations_count=MAX_STATIONS
if click_pos:
d.click(click_pos[0], click_pos[1])
await asyncio.sleep(1.5)
await asyncio.sleep(0.5)
# 检查页面是否真的变化了
after_click_path = take_screenshot(d, f"check_{detail_uuid}", save_dir=TEMP_IMAGE_DIR)

View File

@@ -180,7 +180,7 @@ class YiLaiTeCrawler(BaseCrawler):
if dqdf_pos:
logger.info(f"发现价格入口按钮 (阶段性电价/当前电费) {dqdf_pos},点击进入...")
d.click(dqdf_pos[0], dqdf_pos[1])
await asyncio.sleep(2) # 等待列表加载
await asyncio.sleep(0.5) # 等待列表加载
# 删除旧的详情页截图
if os.path.exists(detail_shot): os.remove(detail_shot)