feat(mai2): Add API request function to handle game NG word list

- Add handle_get_game_ng_word_list_api_request function
- Return an empty sensitive word list, including exact match and partial match lists - for maimai DX China version
This commit is contained in:
2025-01-09 16:27:09 +08:00
parent 3776a19b94
commit 47b2ba82b7

View File

@ -17,3 +17,12 @@ class Mai2Buddies(Mai2FestivalPlus):
# hardcode lastDataVersion for CardMaker # hardcode lastDataVersion for CardMaker
user_data["lastDataVersion"] = "1.40.00" user_data["lastDataVersion"] = "1.40.00"
return user_data return user_data
async def handle_get_game_ng_word_list_api_request(self, data: Dict) -> Dict:
# for maimai DX China version
return {
"ngWordExactMatchLength":0,
"ngWordExactMatchList":[],
"ngWordPartialMatchLength":0,
"ngWordPartialMatchList":[]
}