Skip to content

Commit

Permalink
Update: early stop if sub wanted page
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmusen214 committed Jul 23, 2024
1 parent 42251c7 commit da19d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/AllTask/InShop/InShop.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def pre_condition(self) -> bool:

def on_run(self) -> None:
# 进入商店
# 可能这边不需要区分服务器
if config.userconfigdict["SERVER_TYPE"]=="JP":
# 适配日服新界面
self.run_until(
Expand Down
2 changes: 1 addition & 1 deletion modules/AllTask/InWanted/InWanted.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def on_run(self) -> None:
# 进入悬赏通缉页面
caninwanted = self.run_until(
lambda: click((741, 440)),
lambda: Page.is_page(PageName.PAGE_WANTED),
lambda: Page.is_page(PageName.PAGE_WANTED) or Page.is_page(PageName.PAGE_WANTED_SUB),
)
if Page.is_page(PageName.PAGE_WANTED_SUB):
# 点多了,进入到了子页面,此时点击左上角返回一次
Expand Down

0 comments on commit da19d42

Please sign in to comment.