Skip to content

Commit

Permalink
fix: 修复7号自由港无法
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-stars-1 committed Jul 10, 2024
1 parent 58f0caa commit c565a12
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions auto/huashi/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Author: Night-stars-1 nujj1042633805@gmail.com
Date: 2024-04-08 19:51:16
LastEditTime: 2024-05-11 00:35:10
LastEditTime: 2024-07-10 18:16:02
LastEditors: Night-stars-1 nujj1042633805@gmail.com
"""

Expand All @@ -11,15 +11,15 @@
from loguru import logger

from core.model.config import config
from core.preset import (
click,
get_city,
go_home,
go_outlets,
ocr_click,
wait,
wait_time,
)
from core.preset import click, get_city, go_home, go_outlets, ocr_click, wait, wait_time

CITYS = [
"7号自由港",
"澄明数据中心",
"曼德矿场",
"修格里城",
"阿妮塔发射中心",
]


def join():
Expand All @@ -32,13 +32,7 @@ def start():
logger.info(f"开始购买桦石")
if time.time() - config.rest_area.huashi.runtime > 86400:
city = get_city()
if city in [
"七号自由港",
"澄明数据中心",
"曼德矿场",
"修格里城",
"阿妮塔发射中心",
]:
if city in CITYS:
join()

wait("rest_area/rest_area_logo.png", (918, 48), (1049, 153), 10)
Expand Down

0 comments on commit c565a12

Please sign in to comment.