调用企业微信获取部门API,偶尔报301023?
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"
}