fastapi 封装
This commit is contained in:
parent
d2debb56d3
commit
7dd3eb820b
1
main.py
1
main.py
@ -81,6 +81,7 @@ async def douyin_task(item: Device):
|
|||||||
print(f"({startX}, {startY}) => ({endX}, {endY})")
|
print(f"({startX}, {startY}) => ({endX}, {endY})")
|
||||||
d.swipe(startX, startY, endX + random.random(), endY, duration=0.05 + random.random() * 0.1)
|
d.swipe(startX, startY, endX + random.random(), endY, duration=0.05 + random.random() * 0.1)
|
||||||
time.sleep(5 + random.random() * 2)
|
time.sleep(5 + random.random() * 2)
|
||||||
|
return Response()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user