allnet: minor tweeks to mirrior realnet better

This commit is contained in:
Hay1tsme 2023-09-19 02:15:22 -04:00
parent 2affd0aae9
commit 50de0916d4

View File

@ -176,18 +176,18 @@ class AllnetServlet:
else AllnetJapanRegionId.AICHI.value else AllnetJapanRegionId.AICHI.value
) )
resp.region_name0 = ( resp.region_name0 = (
arcade["country"]
if arcade["country"] is not None
else AllnetCountryCode.JAPAN.value
)
resp.region_name1 = (
arcade["state"] arcade["state"]
if arcade["state"] is not None if arcade["state"] is not None
else AllnetJapanRegionId.AICHI.name else AllnetJapanRegionId.AICHI.name
) )
resp.region_name1 = (
arcade["country"]
if arcade["country"] is not None
else AllnetCountryCode.JAPAN.value
)
resp.region_name2 = arcade["city"] if arcade["city"] is not None else "" resp.region_name2 = arcade["city"] if arcade["city"] is not None else ""
resp.client_timezone = ( resp.client_timezone = ( # lmao
arcade["timezone"] if arcade["timezone"] is not None else "+0900" arcade["timezone"] if arcade["timezone"] is not None else "+0900" if req.format_ver == 3 else "+09:00"
) )
if req.game_id not in self.uri_registry: if req.game_id not in self.uri_registry:
@ -296,7 +296,6 @@ class AllnetServlet:
return res_str return res_str
def handle_dlorder_ini(self, request: Request, match: Dict) -> bytes: def handle_dlorder_ini(self, request: Request, match: Dict) -> bytes:
if "file" not in match: if "file" not in match:
return b"" return b""