sao: fix temp responses
This commit is contained in:
parent
3d8ffaa098
commit
e0aeb2ac21
@ -944,7 +944,7 @@ class SaoBase:
|
||||
|
||||
def handle_d5fe(self, header: SaoRequestHeader, request: bytes) -> bytes:
|
||||
# master_data/get_m_gasha_medal_shop_items
|
||||
return SaoNoopResponse(header.cmd + 1)
|
||||
return SaoNoopResponse(header.cmd + 1).make()
|
||||
|
||||
def handle_d604(self, header: SaoRequestHeader, request: bytes) -> bytes:
|
||||
# master_data_2/get_m_res_earn_campaign_shops
|
||||
@ -970,4 +970,4 @@ class SaoBase:
|
||||
|
||||
def handle_d606(self, header: SaoRequestHeader, request: bytes) -> bytes:
|
||||
# master_data_2/get_m_res_earn_campaign_shop_items
|
||||
return SaoNoopResponse(header.cmd + 1)
|
||||
return SaoNoopResponse(header.cmd + 1).make()
|
@ -119,6 +119,12 @@ class SaoServlet(BaseServlet):
|
||||
self.logger.info(f"{endpoint} - {cmd_str} request")
|
||||
self.logger.debug(f"Request: {req_raw.hex()}")
|
||||
resp = handler(req_header, req_data)
|
||||
|
||||
if resp is None:
|
||||
resp = SaoNoopResponse(req_header.cmd + 1).make()
|
||||
|
||||
elif issubclass(resp, SaoBaseResponse):
|
||||
resp = resp.make()
|
||||
|
||||
self.logger.debug(f"Response: {resp.hex()}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user