forked from Hay1tsme/artemis
mai2: fix handle_get_user_preview_api_request
This commit is contained in:
parent
c4c0566cd5
commit
042440c76e
@ -112,7 +112,7 @@ class Mai2Base:
|
|||||||
return {"returnCode": 1, "apiName": "UpsertClientTestmodeApi"}
|
return {"returnCode": 1, "apiName": "UpsertClientTestmodeApi"}
|
||||||
|
|
||||||
def handle_get_user_preview_api_request(self, data: Dict) -> Dict:
|
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)
|
w = self.data.profile.get_web_option(data["userId"], self.version)
|
||||||
if p is None or w is None:
|
if p is None or w is None:
|
||||||
return {} # Register
|
return {} # Register
|
||||||
@ -124,7 +124,7 @@ class Mai2Base:
|
|||||||
"userName": profile["userName"],
|
"userName": profile["userName"],
|
||||||
"isLogin": False,
|
"isLogin": False,
|
||||||
"lastDataVersion": profile["lastDataVersion"],
|
"lastDataVersion": profile["lastDataVersion"],
|
||||||
"lastLoginDate": profile["lastLoginDate"],
|
"lastLoginDate": profile["lastPlayDate"],
|
||||||
"lastPlayDate": profile["lastPlayDate"],
|
"lastPlayDate": profile["lastPlayDate"],
|
||||||
"playerRating": profile["playerRating"],
|
"playerRating": profile["playerRating"],
|
||||||
"nameplateId": profile["nameplateId"],
|
"nameplateId": profile["nameplateId"],
|
||||||
|
Loading…
Reference in New Issue
Block a user