调整设备拔出方案

This commit is contained in:
2025-09-17 15:43:23 +08:00
parent daa6345c15
commit deffd48bb7
3 changed files with 79 additions and 71 deletions

View File

@@ -179,10 +179,23 @@ class ControlUtils(object):
session.tap(left_x, center_y)
# 点击一个随机范围
# 随机滑动一点点距离
@classmethod
def tap_mini_cluster(cls, center_x: int, center_y: int, session, points=5, duration_ms=60):
pass
try:
response = session.http.post(
"touchAndHold",
data={
"x": 100,
"y": 100,+
"duration": 0.1
}
)
print(response)
return response
except Exception as e:
print(e)
return None
# 检测五分钟前和当前的状态是否相同
# @classmethod