Skip to content

Commit

Permalink
patch 100001 logger
Browse files Browse the repository at this point in the history
  • Loading branch information
J1uShan9 committed Jul 9, 2024
1 parent 76de5c0 commit 24cd720
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions util/Task/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ def CreateOrderAction(self) -> None:
# 刷新
sleep(15)

# 请慢一点
case 100001:
logger.warning("【创建订单】100001: 请慢一点 (无需在意, 这是服务器全局的限制)")

# 硬控
case 3:
logger.error("【创建订单】ERR 3! 请不要对同一实名制购票人开多个脚本, 否则会被B站限流")
Expand Down Expand Up @@ -499,8 +503,6 @@ def CreateOrderAction(self) -> None:
if msg == "请求错误: 429":
logger.warning("【创建订单】429: 请求错误 (无需在意, 这是服务器全局的限制)")
self.createOrderCode = 429
elif msg == "请慢一点":
logger.warning("【创建订单】100001: 请慢一点 (无需在意, 这是服务器全局的限制)")
else:
logger.error(f"【创建订单】{self.createOrderCode}: {msg}")
# 刷新
Expand Down

0 comments on commit 24cd720

Please sign in to comment.