From 27be047facabb25269c680d8f4492b51ef5f095d Mon Sep 17 00:00:00 2001 From: ImAyx Date: Wed, 4 Dec 2024 14:22:00 +0800 Subject: [PATCH] Fix nested JSON parsing error: correctly parse nested 'msg' field --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index 670f306..6e7ad64 100644 --- a/main.py +++ b/main.py @@ -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