不合法的UserID列表长度 不知道怎么解决
public static JSONArray getCardList(String accessToken, String workDateFrom, String workDateTo, String offset, String limit){
String recordUrl = "https://oapi.dingtalk.com/attendance/listRecord?access_token="+accessToken;
JSONObject jsonObject = new JSONObject();
// jsonObject.put("userIds", userIds);
jsonObject.put("workDateFrom",workDateFrom);
jsonObject.put("workDateTo",workDateTo);
jsonObject.put("offset",offset);
jsonObject.put("limit",limit);
String result = test.doPost(recordUrl,jsonObject,"utf-8");
JSONObject resutJSON = jsonObject.parseObject(result);
String msg = (String)resutJSON.get("errmsg");
JSONArray jsonArray = null;
if("ok".equals(msg)){
jsonArray = (JSONArray) resutJSON.get("recordresult");
}
return jsonArray;
}
请问大神们,能帮帮么