mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-14 11:47:28 +08:00
add Kaleidx Scope Support
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user