Skip to content

Commit 58e001c

Browse files
committed
移除部份测试月卡功能代码
1 parent 567e298 commit 58e001c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/tasks/BaseDNATask.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def check_for_monthly_card(self):
151151
start = time.time()
152152
ret = self.handle_monthly_card()
153153
cost = time.time() - start
154-
logger.info(f'check_for_monthly_card: ret {ret} cost {cost}')
155154
return ret, cost
156155
# start = time.time()
157156
# logger.info(f'check_for_monthly_card start check')
@@ -167,7 +166,6 @@ def check_for_monthly_card(self):
167166
return False, 0
168167

169168
def should_check_monthly_card(self):
170-
logger.info(f'next_monthly_card_start: {self.next_monthly_card_start} time left: {time.time() - self.next_monthly_card_start}')
171169
if self.next_monthly_card_start > 0:
172170
if 0 < time.time() - self.next_monthly_card_start < 120:
173171
return True
@@ -202,7 +200,7 @@ def handle_monthly_card(self):
202200
self.wait_until(self.in_team, time_out=10,
203201
post_action=lambda: self.click_relative(0.50, 0.89, after_sleep=1))
204202
self.set_check_monthly_card(next_day=True)
205-
logger.info(f'check_monthly_card {monthly_card}')
203+
logger.info(f'check_monthly_card {monthly_card}, ret {ret}')
206204
return ret
207205

208206
def find_track_point(self, threshold: float = 0, box: Box | None = None, template=None, frame_processor=None,

0 commit comments

Comments
 (0)