Skip to content

Commit 28312a7

Browse files
committed
issue binarywang#54 企业号oauth2获得用户信息url拼接错误
1 parent c5b9d56 commit 28312a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public String[] oauth2getUserInfo(String code) throws WxErrorException {
335335
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?";
336336
url += "access_token=" + wxCpConfigStorage.getAccessToken();
337337
url += "&code=" + code;
338-
url += "agendid=" + wxCpConfigStorage.getAgentId();
338+
url += "&agendid=" + wxCpConfigStorage.getAgentId();
339339

340340
try {
341341
RequestExecutor<String, String> executor = new SimpleGetRequestExecutor();

0 commit comments

Comments
 (0)