From 1f23400b6e4752b5e5f50f295df0ec416c0ed70f Mon Sep 17 00:00:00 2001 From: liulong Date: Mon, 23 Sep 2024 15:33:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F:bug:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?token=E5=8F=96=E5=80=BC=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pzSignIn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pzSignIn.py b/pzSignIn.py index 7d3a2b4..5436117 100644 --- a/pzSignIn.py +++ b/pzSignIn.py @@ -44,7 +44,7 @@ class PzSignIn: except Exception as e: print(e) print(response.text) - token = response_json["data"] + token = response_json["data"]['token'] if token is not None: print("=" * 30 + f"登录成功,开始执行签到" + "=" * 30) self.client.headers["Authorization"] = "Bearer " + token