Quellcode durchsuchen

!2 speedup switch

pcacc vor 2 Monaten
Ursprung
Commit
de694f2398
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 5 4
      app_dongri.py

+ 5 - 4
app_dongri.py

@@ -409,10 +409,11 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
         if g_times == restart_times:
             if g_isRestart:
                 handle_end_game()
-            if always:
-                myTimeSleep(random.randint(350, 400), send_status)
-            else:
-                myTimeSleep(random.randint(1000, 2000), send_status)
+            if g_switch == False:
+                if always:
+                    myTimeSleep(random.randint(350, 400), send_status)
+                else:
+                    myTimeSleep(random.randint(1000, 2000), send_status)
             if g_isRestart:
                 handle_restart_game()
         else: