Tested and fixed stupid bug
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user