Skip to content

Commit

Permalink
fix:假单持续输出
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobr committed Jul 9, 2024
1 parent 71e392f commit 51058e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/Task/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def CreateOrderAction(self) -> None:
# 成功
case 0:
logger.success("【创建订单】订单创建成功!")
self.availableTime = int(time())

# Token过期
case x if 100050 <= x <= 100059:
Expand Down Expand Up @@ -580,7 +581,7 @@ def AutoSleep(self) -> None:
sleepTime = self.availableSchedule[i + 1][1]
break

logger.info(f"【等待余票】票仓可能出票, 请求间隔将自动调整至{sleepTime}秒")
logger.info(f"【等待余票】票仓可能出票, 请求间隔将自动调整至{sleepTime:.2f}秒")
sleep(sleepTime)

# 常规试探
Expand Down

0 comments on commit 51058e7

Please sign in to comment.