🛠️🐛 修复token取值不正确

This commit is contained in:
liulong 2024-09-23 15:33:08 +08:00
parent 279168912c
commit 1f23400b6e

View File

@ -44,7 +44,7 @@ class PzSignIn:
except Exception as e: except Exception as e:
print(e) print(e)
print(response.text) print(response.text)
token = response_json["data"] token = response_json["data"]['token']
if token is not None: if token is not None:
print("=" * 30 + f"登录成功,开始执行签到" + "=" * 30) print("=" * 30 + f"登录成功,开始执行签到" + "=" * 30)
self.client.headers["Authorization"] = "Bearer " + token self.client.headers["Authorization"] = "Bearer " + token