chuni: fix card maker reqs

This commit is contained in:
2025-09-18 21:38:48 +02:00
parent 41dbf4fb78
commit 44168d6e71
7 changed files with 21 additions and 21 deletions

View File

@ -16,8 +16,8 @@ class ChuniLuminous(ChuniSunPlus):
super().__init__(core_cfg, game_cfg) super().__init__(core_cfg, game_cfg)
self.version = ChuniConstants.VER_CHUNITHM_LUMINOUS self.version = ChuniConstants.VER_CHUNITHM_LUMINOUS
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_preview_api_request(self, data: Dict) -> Dict:
user_data = await super().handle_cm_get_user_preview_api_request(data) user_data = await super().handle_c_m_get_user_preview_api_request(data)
# Does CARD MAKER 1.35 work this far up? # Does CARD MAKER 1.35 work this far up?
user_data["lastDataVersion"] = "2.20.00" user_data["lastDataVersion"] = "2.20.00"

View File

@ -12,8 +12,8 @@ class ChuniLuminousPlus(ChuniLuminous):
super().__init__(core_cfg, game_cfg) super().__init__(core_cfg, game_cfg)
self.version = ChuniConstants.VER_CHUNITHM_LUMINOUS_PLUS self.version = ChuniConstants.VER_CHUNITHM_LUMINOUS_PLUS
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_preview_api_request(self, data: Dict) -> Dict:
user_data = await super().handle_cm_get_user_preview_api_request(data) user_data = await super().handle_c_m_get_user_preview_api_request(data)
# Does CARD MAKER 1.35 work this far up? # Does CARD MAKER 1.35 work this far up?
user_data["lastDataVersion"] = "2.25.00" user_data["lastDataVersion"] = "2.25.00"

View File

@ -173,7 +173,7 @@ class ChuniNew(ChuniBase):
} }
return data1 return data1
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_preview_api_request(self, data: Dict) -> Dict:
p = await self.data.profile.get_profile_data(data["userId"], self.version) p = await self.data.profile.get_profile_data(data["userId"], self.version)
if p is None: if p is None:
return {} return {}
@ -246,7 +246,7 @@ class ChuniNew(ChuniBase):
"ssrBookCalcList": [], "ssrBookCalcList": [],
} }
async def handle_cm_get_user_data_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_data_api_request(self, data: Dict) -> Dict:
p = await self.data.profile.get_profile_data(data["userId"], self.version) p = await self.data.profile.get_profile_data(data["userId"], self.version)
if p is None: if p is None:
return {} return {}
@ -349,10 +349,10 @@ class ChuniNew(ChuniBase):
"userCardPrintStateList": card_print_state_list, "userCardPrintStateList": card_print_state_list,
} }
async def handle_cm_get_user_character_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_character_api_request(self, data: Dict) -> Dict:
return await super().handle_get_user_character_api_request(data) return await super().handle_get_user_character_api_request(data)
async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_item_api_request(self, data: Dict) -> Dict:
return await super().handle_get_user_item_api_request(data) return await super().handle_get_user_item_api_request(data)
async def handle_roll_gacha_api_request(self, data: Dict) -> Dict: async def handle_roll_gacha_api_request(self, data: Dict) -> Dict:
@ -397,7 +397,7 @@ class ChuniNew(ChuniBase):
return {"length": len(rolled_cards), "gameGachaCardList": rolled_cards} return {"length": len(rolled_cards), "gameGachaCardList": rolled_cards}
async def handle_cm_upsert_user_gacha_api_request(self, data: Dict) -> Dict: async def handle_c_m_upsert_user_gacha_api_request(self, data: Dict) -> Dict:
upsert = data["cmUpsertUserGacha"] upsert = data["cmUpsertUserGacha"]
user_id = data["userId"] user_id = data["userId"]
place_id = data["placeId"] place_id = data["placeId"]
@ -452,7 +452,7 @@ class ChuniNew(ChuniBase):
"userCardPrintStateList": card_print_state_list, "userCardPrintStateList": card_print_state_list,
} }
async def handle_cm_upsert_user_printlog_api_request(self, data: Dict) -> Dict: async def handle_c_m_upsert_user_printlog_api_request(self, data: Dict) -> Dict:
return { return {
"returnCode": 1, "returnCode": 1,
"orderId": 0, "orderId": 0,
@ -460,7 +460,7 @@ class ChuniNew(ChuniBase):
"apiName": "CMUpsertUserPrintlogApi", "apiName": "CMUpsertUserPrintlogApi",
} }
async def handle_cm_upsert_user_print_api_request(self, data: Dict) -> Dict: async def handle_c_m_upsert_user_print_api_request(self, data: Dict) -> Dict:
user_print_detail = data["userPrintDetail"] user_print_detail = data["userPrintDetail"]
user_id = data["userId"] user_id = data["userId"]
@ -485,7 +485,7 @@ class ChuniNew(ChuniBase):
"apiName": "CMUpsertUserPrintApi", "apiName": "CMUpsertUserPrintApi",
} }
async def handle_cm_upsert_user_print_subtract_api_request(self, data: Dict) -> Dict: async def handle_c_m_upsert_user_print_subtract_api_request(self, data: Dict) -> Dict:
upsert = data["userCardPrintState"] upsert = data["userCardPrintState"]
user_id = data["userId"] user_id = data["userId"]
place_id = data["placeId"] place_id = data["placeId"]
@ -502,7 +502,7 @@ class ChuniNew(ChuniBase):
return {"returnCode": "1", "apiName": "CMUpsertUserPrintSubtractApi"} return {"returnCode": "1", "apiName": "CMUpsertUserPrintSubtractApi"}
async def handle_cm_upsert_user_print_cancel_api_request(self, data: Dict) -> Dict: async def handle_c_m_upsert_user_print_cancel_api_request(self, data: Dict) -> Dict:
order_ids = data["orderIdList"] order_ids = data["orderIdList"]
user_id = data["userId"] user_id = data["userId"]

View File

@ -11,8 +11,8 @@ class ChuniNewPlus(ChuniNew):
super().__init__(core_cfg, game_cfg) super().__init__(core_cfg, game_cfg)
self.version = ChuniConstants.VER_CHUNITHM_NEW_PLUS self.version = ChuniConstants.VER_CHUNITHM_NEW_PLUS
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_preview_api_request(self, data: Dict) -> Dict:
user_data = await super().handle_cm_get_user_preview_api_request(data) user_data = await super().handle_c_m_get_user_preview_api_request(data)
# hardcode lastDataVersion for CardMaker 1.35 A028 # hardcode lastDataVersion for CardMaker 1.35 A028
user_data["lastDataVersion"] = "2.05.00" user_data["lastDataVersion"] = "2.05.00"

View File

@ -11,8 +11,8 @@ class ChuniSun(ChuniNewPlus):
super().__init__(core_cfg, game_cfg) super().__init__(core_cfg, game_cfg)
self.version = ChuniConstants.VER_CHUNITHM_SUN self.version = ChuniConstants.VER_CHUNITHM_SUN
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_preview_api_request(self, data: Dict) -> Dict:
user_data = await super().handle_cm_get_user_preview_api_request(data) user_data = await super().handle_c_m_get_user_preview_api_request(data)
# hardcode lastDataVersion for CardMaker 1.35 A032 # hardcode lastDataVersion for CardMaker 1.35 A032
user_data["lastDataVersion"] = "2.10.00" user_data["lastDataVersion"] = "2.10.00"

View File

@ -11,8 +11,8 @@ class ChuniSunPlus(ChuniSun):
super().__init__(core_cfg, game_cfg) super().__init__(core_cfg, game_cfg)
self.version = ChuniConstants.VER_CHUNITHM_SUN_PLUS self.version = ChuniConstants.VER_CHUNITHM_SUN_PLUS
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_preview_api_request(self, data: Dict) -> Dict:
user_data = await super().handle_cm_get_user_preview_api_request(data) user_data = await super().handle_c_m_get_user_preview_api_request(data)
# I don't know if lastDataVersion is going to matter, I don't think CardMaker 1.35 works this far up # I don't know if lastDataVersion is going to matter, I don't think CardMaker 1.35 works this far up
user_data["lastDataVersion"] = "2.15.00" user_data["lastDataVersion"] = "2.15.00"

View File

@ -16,8 +16,8 @@ class ChuniVerse(ChuniLuminousPlus):
super().__init__(core_cfg, game_cfg) super().__init__(core_cfg, game_cfg)
self.version = ChuniConstants.VER_CHUNITHM_VERSE self.version = ChuniConstants.VER_CHUNITHM_VERSE
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict: async def handle_c_m_get_user_preview_api_request(self, data: Dict) -> Dict:
user_data = await super().handle_cm_get_user_preview_api_request(data) user_data = await super().handle_c_m_get_user_preview_api_request(data)
# Does CARD MAKER 1.35 work this far up? # Does CARD MAKER 1.35 work this far up?
user_data["lastDataVersion"] = "2.30.00" user_data["lastDataVersion"] = "2.30.00"