forked from Fragrance/eaquira
chore: do not qr login twice times
This commit is contained in:
@@ -8,8 +8,9 @@ from sdgb.settings import clientId, qrCode
|
||||
|
||||
maimai = MaimaiClient()
|
||||
|
||||
userId = qr_api(qrCode)["userID"]
|
||||
token = qr_api(qrCode)["token"]
|
||||
qrResp = qr_api(qrCode)
|
||||
userId = qrResp["userID"]
|
||||
token = qrResp["token"]
|
||||
|
||||
|
||||
async def run_workflow(maimai: MaimaiClient):
|
||||
|
||||
@@ -17,8 +17,9 @@ from sdgb.settings import (
|
||||
)
|
||||
|
||||
|
||||
userId = qr_api(qrCode)["userID"]
|
||||
token = qr_api(qrCode)["token"]
|
||||
qrResp = qr_api(qrCode)
|
||||
userId = qrResp["userID"]
|
||||
token = qrResp["token"]
|
||||
|
||||
|
||||
logging.basicConfig(
|
||||
|
||||
Reference in New Issue
Block a user