|
@@ -253,20 +253,6 @@ def auto_participate():
|
|
|
handle_restart_game()
|
|
|
break
|
|
|
|
|
|
-def auto_ranshuang():
|
|
|
- timeout = 40 * 60
|
|
|
- start_time = time.time() # 记录开始时间
|
|
|
- while not event.is_set():
|
|
|
- if len(task_queue) < 4:
|
|
|
- task_queue.appendleft(task_fight_ranshuang())
|
|
|
-
|
|
|
- myTimeSleep_big()
|
|
|
- current_time = time.time()
|
|
|
- elapsed_time = current_time - start_time
|
|
|
-
|
|
|
- if elapsed_time >= timeout:
|
|
|
- handle_restart_game()
|
|
|
- break
|
|
|
|
|
|
def auto_palace():
|
|
|
global g_times, g_cureNum
|
|
@@ -615,11 +601,7 @@ def handle_auto_testNewFun():
|
|
|
task_testFun().run()
|
|
|
|
|
|
|
|
|
-@socketio.on('begin_auto_ranshuang')
|
|
|
-def handle_auto_ranshuang():
|
|
|
- global autoTask
|
|
|
- send_status(f'开始自动燃霜')
|
|
|
- executor.submit(auto_ranshuang)
|
|
|
+
|
|
|
|
|
|
@socketio.on('auto_palace')
|
|
|
def handle_auto_palace():
|