Skip to content

Commit d06da07

Browse files
authored
🎨 修复人事助手接口请求参数名错误:userids → userid
1 parent 2622437 commit d06da07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpHrServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)