Skip to content

Commit 020acd2

Browse files
Copilotbinarywang
andcommitted
修复人事助手接口参数名错误:将请求参数 userids 改为 userid
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
1 parent f95c0aa commit 020acd2

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)