add Kaleidx Scope Support

This commit is contained in:
SoulGateKey
2025-04-02 09:42:08 +08:00
parent d77d02c2dd
commit 3d84e32892
3 changed files with 67 additions and 3 deletions

View File

@@ -282,6 +282,12 @@ class Mai2DX(Mai2Base):
for intimate in upsert["userIntimateList"]:
await self.data.profile.put_intimacy(user_id, intimate["partnerId"], intimate["intimateLevel"], intimate["intimateCountRewarded"])
# added in PRiSM
if "userKaleidxScopeList" in upsert and len(upsert["userKaleidxScopeList"]) > 0:
for kaleidx_scope in upsert["userKaleidxScopeList"]:
await self.data.score.put_user_kaleidx_scope(user_id, kaleidx_scope)
return {"returnCode": 1, "apiName": "UpsertUserAllApi"}
async def handle_get_user_data_api_request(self, data: Dict) -> Dict: