pcacc 4 місяців тому
батько
коміт
f25b169efa
4 змінених файлів з 9 додано та 5 видалено
  1. 4 0
      app_dongri.py
  2. 1 1
      daily.json
  3. BIN
      dongri_img/check/yongbing.png
  4. 4 4
      dongri_task.py

+ 4 - 0
app_dongri.py

@@ -42,10 +42,14 @@ def thread_runTask():
         if event.is_set():
             task_queue.clear()
         if len(task_queue) != 0:
+            # 初始时间
+            current_time = time.time()
             task = task_queue[-1]
             task_queue.pop()
             last_process = task.name
             task.run()
+            cost_time = time.time() - current_time
+            send_status(f"{task.name} 执行完成,耗时{cost_time}秒")
             myTimeSleep_small()
         else:
             myTimeSleep_big()

+ 1 - 1
daily.json

@@ -1,6 +1,6 @@
 {
     "daily": {
-        "2025-04-04": {
+        "2025-04-05": {
             "login_task": true,
             "fight_bigMonster_times": 0
         }

BIN
dongri_img/check/yongbing.png


+ 4 - 4
dongri_task.py

@@ -254,8 +254,8 @@ class task_fight_yongbing(dongri_task):
             
         if waitClickImg_noWait_withBool(check_img.yongbing, 2, 1) == False:
             return False
-        if waitClickImg_noWait_withBool(check_img.detect, 2, 1) == False:
-            return False
+        
+        waitClickImg_noWait_withBool(check_img.detect, 2, 1)
         
         if waitClickImg_noWait_withBool(check_img.yongbing_fight, 2, 1) == False:
             return False
@@ -1027,7 +1027,7 @@ class task_checkActivities(dongri_task):
 
 
 if __name__ == '__main__':
-    task_gotoTree().run()
+    #task_gotoTree().run()
     #task_fight_jina_only().run()
     #task_checkConfilits().run()
     #task_checkActivities().run()
@@ -1040,7 +1040,7 @@ if __name__ == '__main__':
     #task_checkHelp().run()
     #task_checkStoreRoom().run()
     #task_activity_lianmeng().run()
-    #task_fight_yongbing(True).run()
+    task_fight_yongbing(True).run()
     #task_collect([4,3,2,1]).run()
     #task_train("lv9").run()
     #task_information().run()