各种 Anti-warning 合规性改动

This commit is contained in:
Remik1r3n
2025-02-03 03:00:26 +08:00
parent d194556eee
commit a11d5b1246
17 changed files with 59 additions and 91 deletions

View File

@@ -8,7 +8,7 @@ from HelperUploadUserPlayLog import apiUploadUserPlaylog
from HelperUserAll import generateFullUserAll
def generateMusicData():
'''生成一份占位的音乐数据'''
"""生成一份占位的音乐数据"""
return {
"musicId": 834, # PANDORA PARADOXXX
"level": 4,
@@ -25,7 +25,7 @@ def applyUserAllPatches(userAll, patches):
"""
递归地将给定的补丁应用到用户数据的各个层次。
:param user_all: 原始用户数据
:param userAll: 原始用户数据
:param patches: 包含所有patch的字典
"""
for key, value in patches.items():
@@ -45,11 +45,11 @@ def applyUserAllPatches(userAll, patches):
# 否则直接更新或添加key
userAll[key] = value
def implFullPlayAction(userId: int, currentLoginTimestamp:int, currentLoginResult, musicData, userAllPatches, debugMode=False) -> str:
'''
def implFullPlayAction(userId: int, currentLoginTimestamp:int, currentLoginResult, musicData, userAllPatches, debugMode=False):
"""
一份完整的上机实现,可以打 patch 来实现各种功能
需要在外部先登录并传入登录结果
'''
"""
# 取得 UserData
currentUserData = implGetUser_("Data", userId)