1
0
Fork 0

mai2: fix handle_get_user_preview_api_request

This commit is contained in:
Hay1tsme 2023-07-01 02:27:26 -04:00
parent c4c0566cd5
commit 042440c76e
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class Mai2Base:
return {"returnCode": 1, "apiName": "UpsertClientTestmodeApi"}
def handle_get_user_preview_api_request(self, data: Dict) -> Dict:
p = self.data.profile.get_profile_detail(data["userId"], self.version, True)
p = self.data.profile.get_profile_detail(data["userId"], self.version, False)
w = self.data.profile.get_web_option(data["userId"], self.version)
if p is None or w is None:
return {} # Register
@ -124,7 +124,7 @@ class Mai2Base:
"userName": profile["userName"],
"isLogin": False,
"lastDataVersion": profile["lastDataVersion"],
"lastLoginDate": profile["lastLoginDate"],
"lastLoginDate": profile["lastPlayDate"],
"lastPlayDate": profile["lastPlayDate"],
"playerRating": profile["playerRating"],
"nameplateId": profile["nameplateId"],