mirror of
https://github.com/Remik1r3n/maimaiDX-Api.git
synced 2025-09-18 21:33:59 +08:00
Compare commits
No commits in common. "08b42c1d0f57b1e8cefcae814a66f18052efae87" and "32d566841c383ade15b1ae978d9decff611596b2" have entirely different histories.
08b42c1d0f
...
32d566841c
@ -5,9 +5,9 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
import json
|
import rapidjson as json
|
||||||
import re
|
import re
|
||||||
from loguru import logger
|
|
||||||
# 常量
|
# 常量
|
||||||
CHIP_ID = "A63E-01E68606624"
|
CHIP_ID = "A63E-01E68606624"
|
||||||
COMMON_KEY = "XcW5FW4cPArBXEk4vzKz3CIrMuA5EVVW"
|
COMMON_KEY = "XcW5FW4cPArBXEk4vzKz3CIrMuA5EVVW"
|
||||||
@ -106,7 +106,6 @@ def implGetUID(qr_content:str) -> dict:
|
|||||||
# 发送请求并处理响应
|
# 发送请求并处理响应
|
||||||
try:
|
try:
|
||||||
result = json.loads(implAimeDB(qr_content))
|
result = json.loads(implAimeDB(qr_content))
|
||||||
logger.info(f"QRScan Got Response {result}")
|
|
||||||
except:
|
except:
|
||||||
return {'errorID': 60002} # 无法解码 Response 的内容
|
return {'errorID': 60002} # 无法解码 Response 的内容
|
||||||
|
|
||||||
|
@ -95,8 +95,7 @@ def apiSDGB(data:str, targetApi:str, userAgentExtraData:str, noLog:bool=False, t
|
|||||||
"Expect": "100-continue"
|
"Expect": "100-continue"
|
||||||
},
|
},
|
||||||
content=reqData_deflated,
|
content=reqData_deflated,
|
||||||
# verify=certifi.where(),
|
verify=certifi.where(),
|
||||||
verify=False,
|
|
||||||
timeout=timeout
|
timeout=timeout
|
||||||
)
|
)
|
||||||
if not noLog:
|
if not noLog:
|
||||||
|
1
AuthLite_GetUpdate.py
Normal file
1
AuthLite_GetUpdate.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
# It will be finished very soon, I promise
|
Loading…
x
Reference in New Issue
Block a user