Fix nested JSON parsing error: correctly parse nested 'msg' field
This commit is contained in:
parent
f9bede759d
commit
27be047fac
4
main.py
4
main.py
|
@ -174,9 +174,7 @@ if __name__ == "__main__":
|
||||||
Signed = True
|
Signed = True
|
||||||
Over = False
|
Over = False
|
||||||
elif (
|
elif (
|
||||||
json.loads(
|
json.loads(json.loads(res.text)["data"]["list"][-1]["msg"])["msg"]
|
||||||
json.loads(res.text)["data"]["list"][-1]["msg"]["msg"]
|
|
||||||
)
|
|
||||||
== "每日登录奖励"
|
== "每日登录奖励"
|
||||||
):
|
):
|
||||||
success = True
|
success = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user