Merged
Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix incorrect HR API endpoint address
修复企业微信人事助手 HR API 接口地址错误
Mar 4, 2026
Closed
There was a problem hiding this comment.
Pull request overview
该 PR 修复企业微信「人事助手(HR)」相关 API 的路径常量与官方文档不一致的问题,避免调用 HR 接口时因路径错误导致的 404,从而恢复 HR 相关功能的可用性。
Changes:
- 修正
WxCpApiPathConsts.Hr中 3 个 HR API 路径常量为官方文档对应的真实路径(去掉错误的/hr/employee/前缀与旧路径段)。 - 同步更新
WxCpHrService中对应方法的 Javadoc 请求地址说明,保持文档与实现一致。
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java | 修复 HR API 路径常量(get_fields / get_staff_info / update_staff_info),使实现调用到正确的接口地址。 |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpHrService.java | 更新 HR 接口 Javadoc 中的请求地址,避免文档误导使用方。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
企业微信人事助手 API 路径与官方文档不符,导致所有 HR 相关接口返回 404。
变更
WxCpApiPathConsts.java— 修正三个 HR API 路径常量:GET_FIELD_INFO/cgi-bin/hr/employee/get_field_info/cgi-bin/hr/get_fieldsGET_EMPLOYEE_FIELD_INFO/cgi-bin/hr/employee/get_employee_field_info/cgi-bin/hr/get_staff_infoUPDATE_EMPLOYEE_FIELD_INFO/cgi-bin/hr/employee/update_employee_field_info/cgi-bin/hr/update_staff_infoWxCpHrService.java— 同步更新 Javadoc 中的请求地址注释。Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.