Skip to content

Commit

Permalink
修复卡主页
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 13, 2024
1 parent 28436d9 commit b8764af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
18 changes: 7 additions & 11 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def calculate_pc_exe_path(running_path):
config = {
'debug': False, # Optional, default: False
'use_gui': True,
'config_folder': 'configs',
'gui_icon': get_path_in_package(__file__, 'icon.ico'),
'ocr': {
'lib': 'RapidOCR',
Expand Down Expand Up @@ -72,16 +71,13 @@ def calculate_pc_exe_path(running_path):
'version': version,
'locale': 'zh_CN',
'onetime_tasks': [ # tasks to execute
DailyTask(),
NewAoSkillManXunTask(),
JoinGameTask(),
NewAoSkillManXunTask2(),
NewAoSkillManXunTask3(),
NewManXunTask(),
DailyTask,
NewAoSkillManXunTask,
JoinGameTask,
NewAoSkillManXunTask2,
NewAoSkillManXunTask3,
NewManXunTask,
], 'trigger_tasks': [
AutoStartCombatTask()
],
'scenes': [ # scenes to detect

AutoStartCombatTask
]
}
3 changes: 2 additions & 1 deletion task/BJTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def click_to_continue(self):
return True

def go_home_wait(self):

self.wait_click_feature('go_home')
return self.wait_main()

Expand Down Expand Up @@ -91,7 +92,7 @@ def check_until_main(self):
self.log_info('需要登陆账号', notify=True)
self.disable()
return "需要登陆账号"
if box := find_box_by_name(boxes, "账号已授权"):
if box := find_box_by_name(boxes, "点击进入游戏"):
self.click_box(box)
return False

Expand Down

0 comments on commit b8764af

Please sign in to comment.