🐛 Fix qlogin check_login

This commit is contained in:
xtaodada 2022-12-23 22:56:38 +08:00
parent deccfa7c0f
commit 5696caf589
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -133,8 +133,8 @@ class SignIn:
logger.debug("QRCODE_GET_API: [%s]%s", res_json.get("retcode"), res_json.get("message"))
return False
logger.debug("QRCODE_GET_API: %s", res_json.get("data"))
data = res_json.get("data", {})
if data.get("stat", "") == "Confirmed":
res_data = res_json.get("data", {})
if res_data.get("stat", "") == "Confirmed":
return await self.set_cookie(res_json.get("data", {}))
@staticmethod