1
0
forked from Hay1tsme/artemis

fix allnet request using the wrong function

This commit is contained in:
Hay1tsme 2023-02-18 22:58:40 -05:00
parent ffc2f4e0cc
commit edddb2e9d4

View File

@ -151,7 +151,7 @@ class AllnetServlet:
def handle_dlorder(self, request: Request): def handle_dlorder(self, request: Request):
request_ip = request.getClientAddress().host request_ip = request.getClientAddress().host
try: try:
req = AllnetDownloadOrderRequest(self.allnet_req_to_dict(request.content.getvalue())) req = AllnetDownloadOrderRequest(self.billing_req_to_dict(request.content.getvalue()))
# Validate the request. Currently we only validate the fields we plan on using # Validate the request. Currently we only validate the fields we plan on using
if not req.game_id or not req.ver or not req.token or not req.serial or not req.ip: if not req.game_id or not req.ver or not req.token or not req.serial or not req.ip:
@ -243,7 +243,7 @@ class AllnetServlet:
ret.append(tmp) ret.append(tmp)
def allnet_req_to_dict(self, data: bytes): def billing_req_to_dict(self, data: bytes):
""" """
Parses an billing request string into a python dictionary Parses an billing request string into a python dictionary
""" """
@ -258,7 +258,7 @@ class AllnetServlet:
print(e) print(e)
return None return None
def billing_req_to_dict(self, data: str) -> Optional[List[Dict[str, Any]]]: def allnet_req_to_dict(self, data: str) -> Optional[List[Dict[str, Any]]]:
""" """
Parses an allnet request string into a python dictionary Parses an allnet request string into a python dictionary
""" """