From 85821721872c1b32030e75488c545ad8e1676be9 Mon Sep 17 00:00:00 2001 From: Remik1r3n Date: Wed, 16 Jul 2025 15:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E6=98=AF=E5=82=BB=E9=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChargeTicket.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChargeTicket.py b/ChargeTicket.py index c690e0b..db5e372 100644 --- a/ChargeTicket.py +++ b/ChargeTicket.py @@ -64,9 +64,9 @@ def apiBuyTicket(userId:int, ticketType:int, price:int, playerRating:int, playCo }, "userCharge": { "chargeId": ticketType, - "stock": 0, + "stock": 1, "purchaseDate": nowTime.strftime("%Y-%m-%d %H:%M:%S.0"), - "validDate": nowTime + timedelta(days=90).replace(hour=4, minute=0, second=0).strftime("%Y-%m-%d %H:%M:%S") + "validDate": (nowTime + timedelta(days=90)).replace(hour=4, minute=0, second=0).strftime("%Y-%m-%d %H:%M:%S") } }) # 发送请求,返回最终得到的 Json String 回执 @@ -99,7 +99,7 @@ if __name__ == "__main__": logger.info("登录失败") exit() try: - logger.info(implWipeTickets(userId, currentLoginTimestamp, loginResult)) + logger.info(implBuyTicket(userId, 2)) # 购买倍票 #logger.info(apiQueryTicket(userId)) finally: logger.info(apiLogout(currentLoginTimestamp, userId))