UserPreview add cookie

This commit is contained in:
91c0e59d-6161-45ab-8aa4-2371574db28f
2026-01-22 23:02:16 +08:00
parent ffa9984398
commit 6d3710e357
Regular → Executable
+8 -3
View File
@@ -1,16 +1,21 @@
import json
import asyncio
import httpx
from chime import *
from sdgb import MaimaiClient
from settings import *
maimai = MaimaiClient()
userId = qr_api(qrCode)['userID']
token = qr_api(qrCode)['token']
async def run_workflow(maimai):
async with httpx.AsyncClient(verify=False) as client:
data = {
"userId": userId,
"segaIdAuthKey":""
"segaIdAuthKey":"",
"token": token,
"clientId": clientId
}
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)