Compare commits

...

2 Commits

Author SHA1 Message Date
Kohaku
08b42c1d0f Merge branch 'master' of https://github.com/Remik1r3n/maimaiDX-Api 2025-02-19 03:16:07 +08:00
Kohaku
238bd2b397 AimeDB增加log 2025-02-19 03:16:02 +08:00
3 changed files with 5 additions and 4 deletions

View File

@ -5,9 +5,9 @@
import hashlib
import time
import requests
import rapidjson as json
import json
import re
from loguru import logger
# 常量
CHIP_ID = "A63E-01E68606624"
COMMON_KEY = "XcW5FW4cPArBXEk4vzKz3CIrMuA5EVVW"
@ -106,6 +106,7 @@ def implGetUID(qr_content:str) -> dict:
# 发送请求并处理响应
try:
result = json.loads(implAimeDB(qr_content))
logger.info(f"QRScan Got Response {result}")
except:
return {'errorID': 60002} # 无法解码 Response 的内容

View File

@ -95,7 +95,8 @@ def apiSDGB(data:str, targetApi:str, userAgentExtraData:str, noLog:bool=False, t
"Expect": "100-continue"
},
content=reqData_deflated,
verify=certifi.where(),
# verify=certifi.where(),
verify=False,
timeout=timeout
)
if not noLog:

View File

@ -1 +0,0 @@
# It will be finished very soon, I promise