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