from Requests to HTTPX (Higher performance, I guess!)
This commit is contained in:
@@ -60,3 +60,10 @@ def implBuyTicket(userId:int, ticketType:int):
|
||||
getTicketResponseStr = apiBuyTicket(userId, ticketType, ticketType-1, playerRating, playCount)
|
||||
# 返回结果
|
||||
return getTicketResponseStr
|
||||
|
||||
if __name__ == "__main__":
|
||||
userId = testUid2
|
||||
ticketType = 3
|
||||
|
||||
print(implBuyTicket(userId, ticketType))
|
||||
print(apiQueryTicket(userId))
|
||||
|
||||
Reference in New Issue
Block a user