{"status":"Y","code":"","message":"","data":{"unreceivedInfo":{"count":2,"amount":"6","list":{"1":[{"eventId":933114,"id":541247013},{"eventId":933084,"id":541240333}]}},"rewardList":[{"id":541247013,"eventId":933114,"amount":"1","status":1,"title":"10-12","startDate":"2023\/10\/13","endDate":"2023\/10\/14","startTime":"2023\/10\/13 06:00:00","endTime":"2023\/10\/14 00:00:00","lastReceiveTime":"2023\/10\/14 00:00:00","dayStill":{"end":0,"lastReceive":1},"activityInfo":{"id":827952,"originalActivityId":827952,"offerType":1,"activityType":1,"startDate":"2023\/10\/13","endDate":"2023\/10\/14"}},{"id":541240333,"eventId":933084,"amount":"5","status":1,"title":"10-12","startDate":"2023\/10\/13","endDate":"2023\/10\/14","startTime":"2023\/10\/13 03:00:00","endTime":"2023\/10\/14 00:00:00","lastReceiveTime":"2023\/10\/14 00:00:00","dayStill":{"end":0,"lastReceive":1},"activityInfo":{"id":827945,"originalActivityId":827945,"offerType":1,"activityType":1,"startDate":"2023\/10\/13","endDate":"2023\/10\/14"}}]}}
我想判断一下 data.unreceivedInfo.list 里面有多少个数组
然后 取对应的 data.unreceivedInfo.list['1'][0].eventId 和 data.unreceivedInfo.list['1'][0].id
搞半天 取不到 数组
谢谢各位大佬
|