master
wlt233 2 months ago
parent 83babd1500
commit d641468e06

@ -187,14 +187,12 @@ async def lock_ticket(day, seats):
print("\x07") print("\x07")
logger.success(f"锁票成功!支付链接:\nhttps://www.ticketlink.co.kr/global/en/reserve/key/{resp['data']}/price") logger.success(f"锁票成功!支付链接:\nhttps://www.ticketlink.co.kr/global/en/reserve/key/{resp['data']}/price")
seats.clear() seats.clear()
await asyncio.sleep(450)
else: else:
msg = f"锁票失败msg:{resp['result']['message']}" msg = f"锁票失败msg:{resp['result']['message']}"
if "이전에 진행된 예매가 있습니다" in msg: if "이전에 진행된 예매가 있습니다" in msg:
msg += (f" 有正在进行的预售,请访问以下链接初始化。" msg += (f" 有正在进行的预售,请访问以下链接初始化。"
f"https://www.ticketlink.co.kr/global/en/reserve/plan/schedule/{day_code}?loadPrevious=true") f"https://www.ticketlink.co.kr/global/en/reserve/plan/schedule/{day_code}?loadPrevious=true")
logger.critical(msg) logger.critical(msg)
await asyncio.sleep(10)
else: else:
logger.error(msg) logger.error(msg)
except: except:

Loading…
Cancel
Save