mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-04 22:57:32 +08:00
add UploadUserPlaylogListApi handler for Exp version
This commit is contained in:
@@ -112,6 +112,17 @@ class Mai2DX(Mai2Base):
|
||||
|
||||
return {"returnCode": 1, "apiName": "UploadUserPlaylogApi"}
|
||||
|
||||
# Exp version use this instead of UploadUserPlaylogApi in 1.50
|
||||
async def handle_upload_user_playlog_list_api_request(self, data: Dict) -> Dict:
|
||||
user_id = data["userId"]
|
||||
playlog_list = data["userPlaylogList"]
|
||||
|
||||
for playlog in playlog_list:
|
||||
await self.data.score.put_playlog(user_id, playlog)
|
||||
|
||||
return {"returnCode": 1, "apiName": "UploadUserPlaylogApi"}
|
||||
|
||||
|
||||
async def handle_upsert_user_chargelog_api_request(self, data: Dict) -> Dict:
|
||||
user_id = data["userId"]
|
||||
charge = data["userCharge"]
|
||||
|
||||
Reference in New Issue
Block a user