调整设备拔出方案
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user