1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| { "data": [ { "nickname": "戴崇", "userId": 6144, "roomId": 10086 }, { "nickname": "戴崇", "userId": 2174, "roomId": 10086 }, { "nickname": "戴崇", "userId": 9997, "roomId": 10086 } ], "code": "0", "msg": "操作成功!" }
List<Map<String, Object>> list = new ArrayList<>(); for (long userId : rands) { if (userId == 0) { continue; } String value = lotteryData.index(roomId, userId).toString(); list.add(JSON.parseObject(value)); }
|