We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
首先构造网页授权url,然后构成超链接让用户点击
wxCpService.oauth2buildAuthorizationUrl(null)
当用户同意授权后,会回调所设置的url并把authorization code传过来,然后用这个code获得user id
String[] res = wxCpService.oauth2getUserInfo(code); String userId = res[0]; String deviceId = res[1];