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))