chore: do not qr login twice times

This commit is contained in:
mokurin000 committed 2026-07-07 13:51:11 +08:00
1 parent a3c8426786
commit 9a94fe8b4e
2 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -8,8 +8,9 @@ from sdgb.settings import clientId, qrCode
maimai = MaimaiClient() maimai = MaimaiClient()
userId = qr_api(qrCode)["userID"] qrResp = qr_api(qrCode)
token = qr_api(qrCode)["token"] userId = qrResp["userID"]
token = qrResp["token"]
async def run_workflow(maimai: MaimaiClient): async def run_workflow(maimai: MaimaiClient):
+3 -2
View File
@@ -17,8 +17,9 @@ from sdgb.settings import (
) )
userId = qr_api(qrCode)["userID"] qrResp = qr_api(qrCode)
token = qr_api(qrCode)["token"] userId = qrResp["userID"]
token = qrResp["token"]
logging.basicConfig( logging.basicConfig(