forked from Dniel97/artemis
mai2: fix handle_get_game_setting_api_request
This commit is contained in:
parent
42ed222095
commit
49166c1a7b
@ -26,21 +26,21 @@ class Mai2Base:
|
|||||||
self.old_server = f"http://{self.core_config.title.hostname}/SDEY/197/"
|
self.old_server = f"http://{self.core_config.title.hostname}/SDEY/197/"
|
||||||
|
|
||||||
def handle_get_game_setting_api_request(self, data: Dict):
|
def handle_get_game_setting_api_request(self, data: Dict):
|
||||||
return {
|
return {
|
||||||
|
"isDevelop": False,
|
||||||
|
"isAouAccession": False,
|
||||||
"gameSetting": {
|
"gameSetting": {
|
||||||
"isMaintenance": "false",
|
"isMaintenance": False,
|
||||||
"requestInterval": 10,
|
"requestInterval": 1800,
|
||||||
"rebootStartTime": "2020-01-01 07:00:00.0",
|
"rebootStartTime": "2020-01-01 07:00:00.0",
|
||||||
"rebootEndTime": "2020-01-01 07:59:59.0",
|
"rebootEndTime": "2020-01-01 07:59:59.0",
|
||||||
"movieUploadLimit": 10000,
|
"movieUploadLimit": 100,
|
||||||
"movieStatus": 0,
|
"movieStatus": 1,
|
||||||
"movieServerUri": "",
|
"movieServerUri": self.old_server + "movie/",
|
||||||
"deliverServerUri": self.old_server + "deliver/" if self.can_deliver and self.game_config.deliver.enable else "",
|
"deliverServerUri": self.old_server + "deliver/" if self.can_deliver and self.game_config.deliver.enable else "",
|
||||||
"oldServerUri": self.old_server + "old",
|
"oldServerUri": self.old_server + "old",
|
||||||
"usbDlServerUri": self.old_server + "usbdl/" if self.can_deliver and self.game_config.deliver.udbdl_enable else "",
|
"usbDlServerUri": self.old_server + "usbdl/" if self.can_deliver and self.game_config.deliver.udbdl_enable else "",
|
||||||
"rebootInterval": 0,
|
|
||||||
},
|
},
|
||||||
"isAouAccession": "true",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def handle_get_game_ranking_api_request(self, data: Dict) -> Dict:
|
def handle_get_game_ranking_api_request(self, data: Dict) -> Dict:
|
||||||
|
@ -20,6 +20,24 @@ class Mai2DX(Mai2Base):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
self.old_server = f"http://{self.core_config.title.hostname}/SDEZ/100/"
|
self.old_server = f"http://{self.core_config.title.hostname}/SDEZ/100/"
|
||||||
|
|
||||||
|
def handle_get_game_setting_api_request(self, data: Dict):
|
||||||
|
return {
|
||||||
|
"gameSetting": {
|
||||||
|
"isMaintenance": False,
|
||||||
|
"requestInterval": 1800,
|
||||||
|
"rebootStartTime": "2020-01-01 07:00:00.0",
|
||||||
|
"rebootEndTime": "2020-01-01 07:59:59.0",
|
||||||
|
"movieUploadLimit": 100,
|
||||||
|
"movieStatus": 1,
|
||||||
|
"movieServerUri": self.old_server + "movie/",
|
||||||
|
"deliverServerUri": self.old_server + "deliver/" if self.can_deliver and self.game_config.deliver.enable else "",
|
||||||
|
"oldServerUri": self.old_server + "old",
|
||||||
|
"usbDlServerUri": self.old_server + "usbdl/" if self.can_deliver and self.game_config.deliver.udbdl_enable else "",
|
||||||
|
"rebootInterval": 0,
|
||||||
|
},
|
||||||
|
"isAouAccession": False,
|
||||||
|
}
|
||||||
|
|
||||||
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)
|
p = self.data.profile.get_profile_detail(data["userId"], self.version)
|
||||||
|
Loading…
Reference in New Issue
Block a user