mirror of
https://github.com/Remik1r3n/maimaiDX-Api.git
synced 2025-05-20 04:17:28 +08:00
AimeDB增加log
This commit is contained in:
parent
ea86f34b83
commit
238bd2b397
@ -5,9 +5,9 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
import rapidjson as json
|
import json
|
||||||
import re
|
import re
|
||||||
|
from loguru import logger
|
||||||
# 常量
|
# 常量
|
||||||
CHIP_ID = "A63E-01E68606624"
|
CHIP_ID = "A63E-01E68606624"
|
||||||
COMMON_KEY = "XcW5FW4cPArBXEk4vzKz3CIrMuA5EVVW"
|
COMMON_KEY = "XcW5FW4cPArBXEk4vzKz3CIrMuA5EVVW"
|
||||||
@ -106,6 +106,7 @@ 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,7 +95,8 @@ 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 +0,0 @@
|
|||||||
# It will be finished very soon, I promise
|
|
Loading…
x
Reference in New Issue
Block a user