diff --git a/main.py b/main.py index a7f792d..efa2725 100644 --- a/main.py +++ b/main.py @@ -76,6 +76,8 @@ async def douyin_task(item: Device): endY = random.randint(0, int(height/10)) startY = round(endY * 9.75, 1) + if startY - endY < (height / 3): + startY += round((height / 3), 1) # d.swipe_ext("up", scale=0.95, duration=0.1) print(f"({startX}, {startY}) => ({endX}, {endY})")