优化为异步job,注解完成。

This commit is contained in:
liuwei
2025-05-20 10:48:22 +08:00
parent 3389765790
commit edc556ad16
2 changed files with 1 additions and 85 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ def jobs(robot: Robot):
# ✅ 每 3 小时登录验证
@async_job.every_hours(3)
async def login_check_job():
robot.login_twice_auto_auth()
await asyncio.to_thread(robot.login_twice_auto_auth)
if __name__ == "__main__":