feat: 优化代码格式,提升可读性和一致性

This commit is contained in:
Your Name committed 2026-01-06 22:39:58 +08:00
1 parent 68295e564e
commit c6eb76845f
7 files changed
+82 -36

No files matched your search

+6 -2
View File
@@ -2318,7 +2318,9 @@ class fudai_analyse:
self.operation.delay(self.ENTER_LIVE_CLICK_DELAY)
# 小延迟,避免界面卡顿导致第二次点击未生效
try:
self.operation.delay(getattr(self, "RETURN_STEP_DELAY_SECONDS", 0.8))
self.operation.delay(
getattr(self, "RETURN_STEP_DELAY_SECONDS", 0.8)
)
except Exception:
self.operation.delay(0.8)
self.operation.click(self.device_id, enter_live_x, enter_live_y)
@@ -2332,7 +2334,9 @@ class fudai_analyse:
# 进入后等待(保留原有最终等待)
try:
# 小延迟,确保界面就绪(可配置)
self.operation.delay(getattr(self, "RETURN_STEP_DELAY_SECONDS", 0.8))
self.operation.delay(
getattr(self, "RETURN_STEP_DELAY_SECONDS", 0.8)
)
except Exception:
self.operation.delay(0.8)
self.operation.delay(self.ENTER_LIVE_FINAL_DELAY)