fastapi 封装

This commit is contained in:
shikong 2024-08-01 20:42:18 +08:00
parent d2debb56d3
commit 7dd3eb820b
Signed by: Shikong
GPG Key ID: BD85FF18B373C341

View File

@ -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__':