更新 API_TitleServer.py
This commit is contained in:
@@ -14,13 +14,13 @@ import certifi
|
||||
use2024Api = False
|
||||
|
||||
if use2024Api:
|
||||
AesKey = "n7bx6:@Fg_:2;5E89Phy7AyIcpxEQ:R@"
|
||||
AesIV = ";;KjR1C3hgB1ovXa"
|
||||
ObfuscateParam = "BEs2D5vW"
|
||||
AesKey = ""
|
||||
AesIV = ""
|
||||
ObfuscateParam = ""
|
||||
else:
|
||||
AesKey = "a>32bVP7v<63BVLkY[xM>daZ1s9MBP<R"
|
||||
AesIV = "d6xHIKq]1J]Dt^ue"
|
||||
ObfuscateParam = "B44df8yT"
|
||||
AesKey = ""
|
||||
AesIV = ""
|
||||
ObfuscateParam = ""
|
||||
|
||||
class SDGBApiError(Exception):
|
||||
pass
|
||||
@@ -76,7 +76,7 @@ def apiSDGB(
|
||||
) -> str:
|
||||
agentExtra = str(userAgentExtraData)
|
||||
aes = aes_pkcs7(AesKey, AesIV)
|
||||
endpoint = "https://maimai-gm.wahlap.com:42081/Maimai2Servlet/"
|
||||
endpoint = ""
|
||||
|
||||
requestDataFinal = aes.encrypt(zlib.compress(data.encode('utf-8')))
|
||||
|
||||
@@ -198,7 +198,7 @@ def apiSDGB_2024(data:str, targetApi:str, userAgentExtraData:str, noLog:bool=Fal
|
||||
aes = AESPKCS7_2024(AesKey, AesIV)
|
||||
reqData_encrypted = aes.encrypt(data)
|
||||
reqData_deflated = zlib.compress(reqData_encrypted)
|
||||
endpoint = "https://maimai-gm.wahlap.com:42081/Maimai2Servlet/"
|
||||
endpoint = ""
|
||||
if not noLog:
|
||||
logger.debug(f"开始请求 {targetApi},以 {data}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user