Prechádzať zdrojové kódy

!2 fix pack click bug

pcacc 4 mesiacov pred
rodič
commit
42fad71884
2 zmenil súbory, kde vykonal 13 pridanie a 4 odobranie
  1. 12 2
      dongri_task.py
  2. 1 2
      templates/index_dongri.html

+ 12 - 2
dongri_task.py

@@ -78,7 +78,7 @@ class basic_operate:
             return
         ret, pos = waitFindImg(place_img.title, 1, 0)
         if ret:
-            pcacc_mouse.click(pos[0] + 80, pos[1] + 80)
+            pcacc_mouse.click(pos[0] + 20, pos[1] + 80)
 
 
     def backToGame(preTime = 0):
@@ -698,8 +698,18 @@ class task_information(dongri_task):
                 return False
             if waitClickImg_noWait_withBool(monster_img.line1, 1, 1) == False:
                 return False
-            if waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1) == False:
+            
+            if waitClickImg_noWait_withBool(monster_img.all_select, 2, 1) == False:
                 return False
+            waitClickImg_noWait_withBool(monster_img.all_select, 0.1, 1)
+
+            maxTryTimes = 3
+            while maxTryTimes > 0:
+                maxTryTimes -= 1
+                waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1)
+                if False == waitClickImg_noWait_withBool(monster_img.all_select, 1, 1):
+                    break
+            
             waitClickImg_noWait(information_img.add_strength, 1, 1)
             waitClickImg_noWait(information_img.add_strength, 1, 1)
             waitClickImg_noWait(information_img.add_strength, 1, 1)

+ 1 - 2
templates/index_dongri.html

@@ -149,8 +149,7 @@
             AcitivitySelect.value = msg['activity']; // 设置下拉列表的值
             participateJijieCheckbox.checked = msg['participate_jijie']; // 设置复选框的状态
             autoDaily_checkbox.checked = msg['auto_daily']; // 设置复选框的状态
-
-
+            trainSelect.value = msg['train']; // 设置下拉列表的值
 
 
             // 如果需要显示消息,可以取消注释以下代码