Explorar o código

!2 fight big monster check time lower than 20:30

pcacc hai 1 mes
pai
achega
c362c58ccf
Modificáronse 2 ficheiros con 11 adicións e 2 borrados
  1. 3 2
      daily.json
  2. 8 0
      dongri_task.py

+ 3 - 2
daily.json

@@ -1,8 +1,9 @@
 {
     "daily": {
-        "2025-04-09": {
+        "2025-07-11": {
             "login_task": true,
             "fight_bigMonster_times": 0
         }
-    }
+    },
+    "runType": 0
 }

+ 8 - 0
dongri_task.py

@@ -479,6 +479,14 @@ class task_fightMonster(dongri_task):
 
     def run(self):
         global g_task_lineCheck 
+        now = datetime.now()
+        target_time = datetime.combine(now.date(), time(20, 30))
+
+        # 判断当前时间是否超过20:30
+        if now > target_time:
+            print("当前时间已超过20:30,不执行操作")
+            return False
+
         basic_operate.go_outside()
 
         if False == waitFindImg_withBool((monster_img.enough_strengh2, monster_img.enough_strengh3), 2, 1):