24 lines
584 B
Python
Executable File
24 lines
584 B
Python
Executable File
import asyncio
|
|
|
|
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":"",
|
|
"token": token,
|
|
"clientId": clientId
|
|
}
|
|
result = await maimai.call_api(client, "GetUserPreviewApi", data, userId)
|
|
|
|
# 执行入口
|
|
if __name__ == "__main__":
|
|
asyncio.run(run_workflow(maimai)) |