File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ public WxCpHrEmployeeFieldInfoResp getFieldInfo(List<String> fields) throws WxEr
4141 @ Override
4242 public WxCpHrEmployeeFieldDataResp getEmployeeFieldInfo (List <String > userids , List <String > fields ) throws WxErrorException {
4343 if (userids == null || userids .isEmpty ()) {
44- throw new IllegalArgumentException ("userids 不能为空" );
44+ throw new IllegalArgumentException ("userid 不能为空" );
4545 }
4646 if (userids .size () > 20 ) {
47- throw new IllegalArgumentException ("userids 每次最多传入20个" );
47+ throw new IllegalArgumentException ("userid 每次最多传入20个" );
4848 }
4949 JsonObject jsonObject = new JsonObject ();
50- jsonObject .add ("userids " , WxCpGsonBuilder .create ().toJsonTree (userids ));
50+ jsonObject .add ("userid " , WxCpGsonBuilder .create ().toJsonTree (userids ));
5151 if (fields != null && !fields .isEmpty ()) {
5252 jsonObject .add ("fields" , WxCpGsonBuilder .create ().toJsonTree (fields ));
5353 }
You can’t perform that action at this time.
0 commit comments