Minor modifies

This commit is contained in:
Remik1r3n
2025-01-23 19:49:10 +08:00
parent 6e05b211ac
commit a714fc5655
4 changed files with 21 additions and 34 deletions

View File

@@ -39,15 +39,12 @@ def implUnlockThing(newUserItemList, userId: int, currentLoginTimestamp:int, cur
"extNum1": 0
})
# UserData を取得
currentUserData = implGetUser_("Data", userId)
currentUserData2 = currentUserData['userData']
# UserPlayLog を構築してアップロード
currentUploadUserPlaylogApiResult = apiUploadUserPlaylog(userId, musicDataToBeUploaded, currentUserData2, currentLoginResult['loginId'])
logger.debug(f"上传 UserPlayLog 结果: {currentUploadUserPlaylogApiResult}")
# UserAllを構築してアップロード
retries = 0
while retries < 3:
currentSpecialNumber = calcSpecialNumber()
@@ -68,7 +65,7 @@ def implUnlockThing(newUserItemList, userId: int, currentLoginTimestamp:int, cur
except Exception:
raise WahlapServerBoomedError("邪门错误")
break
else: # 重试次数超过3次
else:
raise Request500Error("多次尝试后仍无法成功上传 UserAll")
logger.info("解锁东西:结果:"+ str(currentUserAllResult))