mirror of
https://github.com/Remik1r3n/maimaiDX-Api.git
synced 2025-05-20 07:27:28 +08:00
Merge branch 'master' of https://github.com/Remik1r3n/maimaiDX-Api
This commit is contained in:
commit
47cbd5b09a
@ -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 的内容
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user