总会有一些坑在前面等着你


我们先来看一下后台返回的部分json数据,稍后再来分析问题,仔细看一下userId和userCode两个字段,其他不用看

"list": [{
            "classId": 5000285,
            "className": "考勤(A)班",
            "schoolId": 50011,
            "schoolName": "星星局测中学25",
            "classLeaderUserId": 2000163,
            "parentList": [{
                "userId": 2000790,
                "userName": "zhaomin",
                "gender": "0",
                "mobile": "15071362222",
                "email": "",
                "areaCode": "440105",
                "avatarUrl": "",
                "userCode": "2000790",
                "id": 1542,
                "roleType": 2,
                "nickN