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

This commit is contained in:
ImAyx authored and GitHub committed 2024-12-04 14:22:00 +08:00
1 parent f9bede759d
commit 27be047fac
1 file changed
+1 -3
+1 -3
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