Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,16 @@ WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputStream i
*/
void tagAddUsers(String tagId, List<String> userIds, List<String> partyIds) throws WxErrorException;

/**
* <pre>
* 构造oauth2授权的url连接
* </pre>
*
* @param state
* @return
*/
String oauth2buildAuthorizationUrl(String state);

/**
* <pre>
* 构造oauth2授权的url连接
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,14 @@ public void tagRemoveUsers(String tagId, List<String> userIds) throws WxErrorExc
}

@Override
public String oauth2buildAuthorizationUrl(String state) {
return this.oauth2buildAuthorizationUrl(
this.wxCpConfigStorage.getOauth2redirectUri(),
state
);
}

@Override
public String oauth2buildAuthorizationUrl(String redirectUri, String state) {
String url = "https://open.weixin.qq.com/connect/oauth2/authorize?";
url += "appid=" + wxCpConfigStorage.getCorpId();
Expand Down