refactor: update to sdgb 1.55

This commit is contained in:
2026-07-07 13:38:06 +08:00
parent 8da425391a
commit 17c419dca0
18 changed files with 4678 additions and 4360 deletions
+29
View File
@@ -0,0 +1,29 @@
import asyncio
import httpx
from sdgb.sdgb import MaimaiClient
from sdgb.chime import qr_api
from sdgb.settings import clientId, qrCode
maimai = MaimaiClient()
userId = qr_api(qrCode)["userID"]
token = qr_api(qrCode)["token"]
async def run_workflow(maimai: MaimaiClient):
async with httpx.AsyncClient(verify=False) as client:
data = {
"userId": userId,
"segaIdAuthKey": "",
"token": token,
"clientId": clientId,
}
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)
print(result)
# 执行入口
if __name__ == "__main__":
asyncio.run(run_workflow(maimai))