From 6d3710e3577d560bbe19103d8ccfd18906fcc0f1 Mon Sep 17 00:00:00 2001 From: 91c0e59d-6161-45ab-8aa4-2371574db28f <91c0e59d-6161-45ab-8aa4-2371574db28f@bank-of-china.com> Date: Thu, 22 Jan 2026 23:02:16 +0800 Subject: [PATCH] UserPreview add cookie --- sdgb/GetUserPreviewApi.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) mode change 100644 => 100755 sdgb/GetUserPreviewApi.py diff --git a/sdgb/GetUserPreviewApi.py b/sdgb/GetUserPreviewApi.py old mode 100644 new mode 100755 index 0874c45..6bf9f83 --- a/sdgb/GetUserPreviewApi.py +++ b/sdgb/GetUserPreviewApi.py @@ -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)