🎨 #3624 【企业微信】企微微盘API接口不需要传userId#3625
Merged
binarywang merged 1 commit intobinarywang:developfrom Jul 2, 2025
benben4466:develop
Merged
🎨 #3624 【企业微信】企微微盘API接口不需要传userId#3625binarywang merged 1 commit intobinarywang:developfrom benben4466:develop
binarywang merged 1 commit intobinarywang:developfrom
benben4466:develop
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR removes the now-unused userId parameter from WeDrive API methods to align with the enterprise WeChat change in December 2022.
- Method signatures in the service interface no longer include
userId - Implementation no longer sends
useridin JSON payloads - Test calls updated to match the new signatures
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java | Removed userId from method signatures and Javadoc |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java | Dropped userid JSON properties and updated signatures |
| weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java | Updated test invocations to call methods without userId |
Comments suppressed due to low confidence (1)
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java:55
- Removing these methods entirely can break existing clients. Consider deprecating the old overloads (with
userId) and providing the new signatures in parallel to give consumers a migration path.
WxCpBaseResp spaceDismiss(@NonNull String spaceId) throws WxErrorException;
Owner
|
#3437 我看之前做过一次修改,是没做完吗? |
Contributor
Author
issue原文:https://gitee.com/binary/weixin-java-tools/issues/IBH1N0 |
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.
企业微信在2022年12月01号修改了企业微信微盘的API接口,取消接口中userId字段。