Răsfoiți Sursa

!2 remove ranshuang

pcacc 1 lună în urmă
părinte
comite
810120047e
2 a modificat fișierele cu 2 adăugiri și 23 ștergeri
  1. 1 19
      app_dongri.py
  2. 1 4
      templates/index_dongri.html

+ 1 - 19
app_dongri.py

@@ -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():

+ 1 - 4
templates/index_dongri.html

@@ -100,7 +100,6 @@
             <label><input type="checkbox" id="always_checkbox"> 无尽运行</label>
         </div>
         <div class="operate-container">
-            <button class="custom-button" id="atuoRanshuang_btn" onclick="begin_ranshuang()">自动燃霜</button>
             <button class="custom-button" id="autoPalace_btn" onclick="auto_palace()">自动王城</button>
             <button class="custom-button" id="atuo_btn" onclick="begin_paticipate()">自动打熊</button>
             <button class="custom-button" id="resetScript_btn" onclick="reset_script()">重置脚本</button>
@@ -261,9 +260,7 @@
             socket.emit('begin_auto_participate');
         }
 
-        function begin_ranshuang(){
-            socket.emit('begin_auto_ranshuang')
-        }
+
 
         function auto_palace()
         {