更新 API_AimeDB.py
This commit is contained in:
@@ -6,8 +6,8 @@ import re
|
||||
from loguru import logger
|
||||
|
||||
CHIP_ID = ""
|
||||
COMMON_KEY = "XcW5FW4cPArBXEk4vzKz3CIrMuA5EVVW"
|
||||
API_URL = "http://ai.sys-allnet.cn/wc_aime/api/get_data"
|
||||
COMMON_KEY = ""
|
||||
API_URL = ""
|
||||
|
||||
def getSHA256(input_str):
|
||||
return hashlib.sha256(input_str.encode('utf-8')).hexdigest().upper()
|
||||
@@ -15,7 +15,7 @@ def getSHA256(input_str):
|
||||
def generateSEGATimestamp():
|
||||
return time.strftime("%y%m%d%H%M%S", time.localtime())
|
||||
|
||||
def calcSEGAAimeDBAuthKey(varString:str, timestamp:str, commonKey:str="XcW5FW4cPArBXEk4vzKz3CIrMuA5EVVW") -> str:
|
||||
def calcSEGAAimeDBAuthKey(varString:str, timestamp:str, commonKey:str="") -> str:
|
||||
return hashlib.sha256((varString + timestamp + commonKey).encode("utf-8")).hexdigest().upper()
|
||||
|
||||
def apiAimeDB(qrCode):
|
||||
|
||||
Reference in New Issue
Block a user