Fix nested JSON parsing error: correctly parse nested 'msg' field

This commit is contained in:
ImAyx 2024-12-04 14:22:00 +08:00 committed by GitHub
parent f9bede759d
commit 27be047fac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,9 +174,7 @@ if __name__ == "__main__":
Signed = True
Over = False
elif (
json.loads(
json.loads(res.text)["data"]["list"][-1]["msg"]["msg"]
)
json.loads(json.loads(res.text)["data"]["list"][-1]["msg"])["msg"]
== "每日登录奖励"
):
success = True