Tested and fixed stupid bug

This commit is contained in:
Remik1r3n
2025-01-23 19:16:27 +08:00
parent 83da4636ac
commit 6e05b211ac
3 changed files with 14 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ from HelperGetUserThing import implGetUser_
from HelperUploadUserPlayLog import apiUploadUserPlaylog
from HelperUserAll import generateFullUserAll
def implUnlockThing(newUserItemList:list, userId: int, currentLoginTimestamp:int, currentLoginResult) -> str:
def implUnlockThing(newUserItemList, userId: int, currentLoginTimestamp:int, currentLoginResult) -> str:
'''
解锁东西的实现
Note: itemKind 如下
@@ -56,6 +56,8 @@ def implUnlockThing(newUserItemList:list, userId: int, currentLoginTimestamp:int
currentUserAll['upsertUserAll']["userMusicDetailList"] = [musicDataToBeUploaded]
currentUserAll['upsertUserAll']['isNewMusicDetailList'] = "1" # Insert mode(Not overriding)
currentUserAll['upsertUserAll']['userItemList'] = newUserItemList
currentUserAll['upsertUserAll']['isNewItemList'] = "1" * len(newUserItemList)
data = json.dumps(currentUserAll)
try:
currentUserAllResult = json.loads(apiSDGB(data, "UpsertUserAllApi", userId))