Skip to content

Commit a5d05d3

Browse files
committed
issue #113 企业号oauth2getUserInfo报errcode=40029, errmsg=invalid code
1 parent 7efdd44 commit a5d05d3

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
@@ -445,7 +445,7 @@ public String oauth2buildAuthorizationUrl(String redirectUri, String state) {
445445

446446
@Override
447447
public String[] oauth2getUserInfo(String code) throws WxErrorException {
448-
return oauth2getUserInfo(code, wxCpConfigStorage.getAgentId());
448+
return oauth2getUserInfo(wxCpConfigStorage.getAgentId(), code);
449449
}
450450

451451
@Override

0 commit comments

Comments
 (0)