Эх сурвалжийг харах

!2 晚上8点后,不再切换小号

pcacc 1 сар өмнө
parent
commit
2b2f5f0882
1 өөрчлөгдсөн 9 нэмэгдсэн , 0 устгасан
  1. 9 0
      app_dongri.py

+ 9 - 0
app_dongri.py

@@ -348,6 +348,15 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
                 update_rungame_type(0)
             send_status(f'巨熊行动:在60min内,切换到无尽模式')
         
+        now = datetime.now()
+        target_time = datetime.combine(now.date(), dt.time(20, 00))
+        end_time = datetime.combine(now.date(), dt.time(24, 00))
+
+        # 判断当前时间是否超过20:30
+        if now > target_time and now < end_time:
+            update_rungame_type(0)
+
+
         print("add special activity")
         curNum = GlobalState.g_cureNum
         if get_rungame_type() == 1: