各种 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

@@ -9,7 +9,7 @@ from Config import *
from API_TitleServer import apiSDGB
def apiLogin(timestamp:int, userId:int) -> dict:
'''登录,返回服务器给的 Json 的 dict'''
"""登录,返回服务器给的 Json 的 dict"""
data = json.dumps({
"userId": userId,
"accessCode": "",
@@ -25,7 +25,7 @@ def apiLogin(timestamp:int, userId:int) -> dict:
return login_result
def apiLogout(timestamp:int, userId:int) -> dict:
'''登出,返回 Json dict'''
"""登出,返回 Json dict"""
data = json.dumps({
"userId": userId,
"accessCode": "",
@@ -41,7 +41,7 @@ def apiLogout(timestamp:int, userId:int) -> dict:
def generateTimestamp() -> int:
'''生成时间戳'''
"""生成时间戳"""
timestamp = int(time.time()) - 60
logger.info(f"生成时间戳: {timestamp}")
return timestamp