public JSONObject getcheckindata() throws IOException {
codeUtils codeUtils=new codeUtils();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String time=df.format(new Date());
List<String> list=new ArrayList<>();
list.add("dongjunjian");
JSONObject jsonObject=new JSONObject();
jsonObject.put("opencheckindatatype",3);
jsonObject.put("starttime",timeUtils.startTime(time));
jsonObject.put("opencheckindatatype",timeUtils.endTime(time));
jsonObject.put("useridlist",list);
String url="https://"+codeUtils.getProperty("app.url")+finalParameter.getcheckindata+codeUtils.GetToken().get("access_token");
String end= HttpUtil.get(url,jsonObject,5000);
return JSONObject.parseObject(end);
}
返回的数据为
{
"errcode":301023,
"checkindata":[],
"errmsg":"userlist is over threshold,
hint: [1633182308_232_0e6759e68ad1faed04d10b8a4433e8c1],
from ip: 144.255.57.47,
more info at https://open.work.weixin.qq.com/devtool/query?e=301023"
}
你好,这个hint打印的日志是调用获取打卡数据接口,没有传userid,请确认下是否存在非法字符这些导致后台无法解析